/* =====================================================
   Dhan-X — Login Page Styles (Dark Theme)
   ===================================================== */

html, body.login-body {
  min-height: 100vh;
  display: block;
  overflow: auto;
}

body.login-body {
  background: #06080a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Background orbs */
.login-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.2;
}
.login-orb-1 {
  width: 480px; height: 480px;
  background: var(--forest);
  top: -100px; right: -80px;
}
.login-orb-2 {
  width: 360px; height: 360px;
  background: var(--amber);
  bottom: -80px; left: -60px;
}
.login-orb-3 {
  width: 280px; height: 280px;
  background: var(--forest-light);
  top: 40%; left: 55%;
  opacity: 0.1;
}

/* Horizon SVG */
.login-horizon {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 0;
  pointer-events: none;
}

/* Card container */
.login-center {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  width: 100%;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  padding: 44px 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--parchment);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--forest-light), var(--amber));
}

/* Logo */
.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.3px;
}

.login-logo-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 1px;
}

/* Headings */
.login-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}

.login-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.login-divider {
  height: 1px;
  background: var(--parchment);
  margin: 24px 0;
}

/* ── Google Sign-In Button ─────────────────────────── */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  margin-top: 20px;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.auth-google-btn:hover {
  background: #f7f8f8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.auth-google-btn:active { transform: translateY(0); }

.auth-google-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-google-btn svg {
  flex-shrink: 0;
}

/* ── "or" divider ──────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--parchment);
}

/* ── Email / Password Form ─────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-input {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--parchment);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.12);
}

.auth-input::placeholder {
  color: var(--text-faint);
}

/* ── Error / Status ───────────────────────────────── */
.auth-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Submit Button ─────────────────────────────────── */
.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  color: #0a0c10;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

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

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Toggle Sign In / Sign Up ──────────────────────── */
.auth-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-toggle-btn {
  background: none;
  border: none;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-toggle-btn:hover {
  color: var(--amber);
}

/* ── Forgot Password ──────────────────────────────── */
.auth-forgot-btn {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-forgot-btn:hover {
  color: var(--forest);
}

/* Footer */
.login-footer-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.6;
  text-align: center;
}

.login-skip {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12px;
  display: inline-block;
  margin-top: 4px;
}
.login-skip:hover { color: var(--forest); }

/* ── Sidebar avatar image (for Google photo) ──────── */
.sidebar-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card { padding: 32px 24px; }
  .login-heading { font-size: 24px; }
}
