/* =========================================
   AUTH PAGES
========================================= */

.auth-page {
  min-height: 70vh;
  padding: 70px 0;
  background: #f8fafc;
}

/* =========================================
   AUTH WRAPPER
========================================= */

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   AUTH CARD
========================================= */

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 35px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

/* =========================================
   AUTH HEADER
========================================= */

.auth-header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 17px;
  background: #eff6ff;
  border-radius: 50%;
  font-size: 32px;
}

.auth-header h1 {
  margin-bottom: 8px;
  color: #111827;
  font-size: 28px;
  line-height: 1.3;
}

.auth-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
   FORM
========================================= */

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.auth-form .form-group input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: 0.3s ease;
}

.auth-form .form-group input::placeholder {
  color: #9ca3af;
}

.auth-form .form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =========================================
   CHECKBOX
========================================= */

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 5px 0 20px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-option input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.checkbox-option a {
  color: #2563eb;
  text-decoration: none;
}

.checkbox-option a:hover {
  text-decoration: underline;
}

/* =========================================
   AUTH BUTTON
========================================= */

.auth-btn {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.auth-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* =========================================
   AUTH FOOTER
========================================= */

.auth-footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.auth-footer p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {
  .auth-page {
    padding: 50px 0;
  }

  .auth-card {
    padding: 28px 22px;
  }

  .auth-header h1 {
    font-size: 25px;
  }

  .auth-header p {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .auth-card {
    padding: 25px 18px;
  }

  .auth-header h1 {
    font-size: 23px;
  }
}

/* =========================================
   LOGIN OPTIONS
========================================= */

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 5px 0 20px;
}

.login-options .checkbox-option {
  margin: 0;
}

.login-options > a {
  color: #2563eb;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.login-options > a:hover {
  text-decoration: underline;
}

@media (max-width: 400px) {
  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* ========================================
   FORGOT PASSWORD
======================================== */

.auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eff6ff;
  font-size: 30px;
}

.auth-message {
  margin-top: 15px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  display: none;
}

.auth-message.error {
  display: block;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-message.success {
  display: block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ========================================
   FORGOT PASSWORD PAGE FIX
======================================== */

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
  background: #f8fafc;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.auth-card {
  width: 100%;
  box-sizing: border-box;
  padding: 35px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h1 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 28px;
}

.auth-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eff6ff;
  font-size: 30px;
}

.auth-card .form-group {
  margin-bottom: 20px;
}

.auth-card .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.auth-card .form-group input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.auth-card .form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-submit-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit-btn:hover {
  background: #1d4ed8;
}

.auth-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.auth-footer p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.auth-message {
  margin-top: 15px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  display: none;
}

.auth-message.error {
  display: block;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-message.success {
  display: block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* MOBILE */

@media (max-width: 600px) {
  .auth-page {
    padding: 40px 15px;
  }

  .auth-card {
    padding: 25px 20px;
  }

  .auth-header h1 {
    font-size: 24px;
  }
}

/* ========================================
   PASSWORD SHOW / HIDE
======================================== */

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 48px !important;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    background: transparent;

    font-size: 17px;
    line-height: 1;

    cursor: pointer;
}

.password-toggle:hover {
    opacity: 0.7;
}