.auth-page {
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
body.dark .auth-card { background: #1e1e1e; }

.auth-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e07b39;
  text-align: center;
  margin-bottom: 4px;
}

.auth-tagline {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: #f4f4f4;
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 28px;
}
body.dark .auth-tabs { background: #2a2a2a; }

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #aaa;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
  background: #e07b39;
  color: #fff;
  box-shadow: 0 2px 8px rgba(224,123,57,0.3);
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
}
body.dark .form-group label { color: #ccc; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  color: #333;
  width: 100%;
}
body.dark .form-group input[type="text"],
body.dark .form-group input[type="email"],
body.dark .form-group input[type="password"] {
  background: #2a2a2a;
  border-color: #444;
  color: #eee;
}

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

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  user-select: none;
}

.toggle-pw:hover {
  opacity: 1;
}

/* Password strength */
.password-strength {
  height: 5px;
  background: #eee;
  border-radius: 10px;
  margin-top: 6px;
  overflow: hidden;
}
body.dark .password-strength { background: #333; }

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.3s, background 0.3s;
}

.strength-label {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}

/* Remember / forgot row */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
  cursor: pointer;
}
body.dark .remember-me { color: #ccc; }

.forgot-link {
  color: #e07b39;
  text-decoration: none;
  font-weight: 600;
}

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

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #555;
  cursor: pointer;
}
body.dark .checkbox-group label { color: #ccc; }

.checkbox-group a {
  color: #e07b39;
  text-decoration: none;
  font-weight: 600;
}

/* Auth button */
.auth-btn {
  padding: 13px;
  background: linear-gradient(135deg, #e07b39, #fc4a1a);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(224,123,57,0.35);
}

.auth-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.auth-btn:disabled:hover {
  transform: none;
}

/* Messages */
.auth-msg {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 20px;
}

.auth-msg.success { color: #2e7d32; }
.auth-msg.error   { color: #c62828; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}
body.dark .auth-divider::before,
body.dark .auth-divider::after { background: #444; }

/* Social buttons */
.social-btns {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
  color: #444;
}
body.dark .social-btn { background: #2a2a2a; border-color: #444; color: #eee; }

.social-btn:hover {
  background: #fafafa;
  border-color: #e07b39;
}

.social-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  flex-direction: column;
  gap: 2px;
}
.social-btn:disabled:hover {
  background: #fff;
  border-color: #e0e0e0;
}
body.dark .social-btn:disabled:hover {
  background: #2a2a2a;
  border-color: #444;
}

.coming-soon-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.google-btn span {
  font-weight: 800;
  color: #ea4335;
  font-size: 1rem;
}

.facebook-btn span {
  font-weight: 800;
  color: #1877f2;
  font-size: 1rem;
}

/* Switch text */
.switch-text {
  text-align: center;
  font-size: 0.88rem;
  color: #888;
}
body.dark .switch-text { color: #999; }

.switch-text a {
  color: #e07b39;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.switch-text a:hover {
  text-decoration: underline;
}

/* Navbar logo as link */
.navbar .logo {
  text-decoration: none;
}

/* Forgot Password Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
body.dark .modal-box { background: #1e1e1e; }

.modal-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 8px;
}
body.dark .modal-box h3 { color: #eee; }

.modal-box p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 22px;
  line-height: 1.5;
}
body.dark .modal-box p { color: #aaa; }

.modal-box form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #e07b39;
}

/* Responsive */
@media (max-width: 500px) {
  .auth-card {
    padding: 32px 24px;
  }
}
