/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #111827;
}

/* ===== CONTAINER ===== */
.login-container {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* ===== LOGO ===== */
.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.logo-section img {
  width: 28px;
  height: 28px;
}

.logo-section strong {
  font-size: 16px;
  color: #111827;
}

/* ===== HEADINGS ===== */
h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.subtext {
  font-size: 14px;
  color: #6b7280;
  margin: 6px 0 24px;
}

/* ===== FORM ===== */
label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #374151;
}

input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  background: #f9fafb;
  color: #111;
  outline: none;
}

input:focus {
  border-color: #2563eb;
  background: #ffffff;
}

/* ===== PASSWORD FIELD ===== */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 42px;
}

.password-wrapper i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
}

/* ===== ERROR TEXT ===== */
.error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
  margin-bottom: 14px;
  display: block;
}

.error-message {
  background: white;
  color: #b91c1c;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  text-align: center;
}

/* ===== FORGOT PASSWORD LINK ===== */
.forgot-password-link {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  margin-top: 4px;
  margin-bottom: 16px;
}

.forgot-password-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* ===== BUTTON ===== */
button {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #1d4ed8;
}

/* ===== TABLET ===== */
@media (min-width: 640px) {
  .login-container {
    padding: 34px 30px;
    max-width: 420px;
  }

  h1 {
    font-size: 24px;
  }
}
.error-message {
  color: red;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

.backend-error {
  background: #ffe5e5;
  color: #c00;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
  body {
    padding: 0;
  }
}
