/* ===== Auth Pages: Login & Register ===== */
*, *::before, *::after { box-sizing: border-box; }

.auth-page {
  min-height: 100vh;
  background: #F7F7F8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

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

.auth-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}

@media (max-width: 575px) {
  .auth-box { padding: 30px 22px; }
}

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

.auth-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #03060E;
  margin: 0 0 8px 0;
}

.auth-header p {
  font-size: 14px;
  color: #575962;
  margin: 0;
}

/* Form groups */
.auth-form .form-group {
  margin-bottom: 18px;
}

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

.auth-form .form-group input[type="text"],
.auth-form .form-group input[type="email"],
.auth-form .form-group input[type="password"] {
  width: 100%;
  height: 48px;
  border: 1.5px solid #E4E4E5;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  color: #03060E;
  background: #ffffff;
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}

.auth-form .form-group input:focus {
  border-color: #FF6254;
}

.auth-form .form-group input.error {
  border-color: #e74c3c;
}

.auth-form .error-message {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 5px;
}

/* Remember + Forgot row */
.auth-form .form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #575962;
  cursor: pointer;
}

.auth-form .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FF6254;
  cursor: pointer;
  flex-shrink: 0;
}

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

.auth-form .forgot-link {
  font-size: 13px;
  color: #FF6254;
  text-decoration: none;
  font-weight: 500;
}

.auth-form .forgot-link:hover {
  text-decoration: underline;
}

/* Alert */
.auth-form .alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}

.auth-form .alert-error {
  background: #fff0ee;
  border: 1px solid #ffc9c4;
  color: #c0392b;
}

/* Submit button */
.auth-form .btn.btn-primary {
  display: block;
  width: 100%;
  height: 50px;
  background: #FF6254;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.auth-form .btn.btn-primary:hover {
  background: #e5574b;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 12px;
  color: #575962;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E4E4E5;
}

/* Social */
.social-login {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-social {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #E4E4E5;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #03060E;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}

.btn-social:hover {
  border-color: #aaa;
  background: #F7F7F8;
}

/* Footer */
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: #575962;
  margin-top: 4px;
}

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

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

/* Auth Top Bar */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid #E4E4E5;
}
.auth-logo img { display: block; }
.auth-home-link {
  font-size: 13px;
  font-weight: 600;
  color: #575962;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.auth-home-link:hover { color: #FF6254; }
.auth-page { padding-top: 40px; }
/* success alert for forgot password */
.auth-form .alert-success,
.alert-success-auth {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-success-auth svg { flex-shrink: 0; margin-top: 2px; }
.alert-success-auth p { margin: 4px 0 0; font-size: 13px; }
