/* ============================================================
   GreenCard - Auth Pages CSS
   ============================================================ */

.auth-layout {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh;
}

/* LEFT PANEL */
.auth-panel-left {
  background: linear-gradient(135deg, #00C853 0%, #00A843 50%, #006B2A 100%);
  padding: 40px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-panel-left::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.auth-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #fff; font-size: 22px; font-weight: 800; position: relative; z-index: 1;
}
.auth-visual {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 32px; position: relative; z-index: 1;
}

/* Demo Card */
.auth-card-demo {
  width: 320px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; padding: 28px; backdrop-filter: blur(12px); position: relative; overflow: hidden;
  color: #fff; font-family: 'Space Mono', monospace; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: cardFloat 4s ease-in-out infinite;
}
@keyframes cardFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.acd-pattern {
  position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
}
.acd-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.acd-logo { font-size: 13px; font-weight: 700; font-family: 'Sora', sans-serif; }
.acd-badge {
  font-size: 9px; font-weight: 700; background: rgba(255,255,255,0.2);
  padding: 4px 8px; border-radius: 4px; letter-spacing: 1px;
}
.acd-chip {
  width: 44px; height: 34px; background: linear-gradient(135deg, #ffd700, #ffb300);
  border-radius: 6px; margin-bottom: 20px; position: relative; overflow: hidden;
}
.chip-inner {
  position: absolute; inset: 4px; border: 1px solid rgba(0,0,0,0.2); border-radius: 3px;
}
.acd-number { font-size: 16px; letter-spacing: 3px; font-weight: 700; margin-bottom: 20px; }
.acd-footer { display: flex; align-items: flex-end; gap: 20px; }
.acd-label { font-size: 9px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; font-family: 'Sora', sans-serif; }
.acd-val { font-size: 13px; font-weight: 700; }
.acd-network { margin-left: auto; display: flex; }
.an-c1, .an-c2 { width: 30px; height: 30px; border-radius: 50%; }
.an-c1 { background: rgba(255,100,0,0.7); }
.an-c2 { background: rgba(255,60,0,0.5); margin-left: -12px; }

.auth-features { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.af-item {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 12px 16px;
  color: #fff; font-size: 14px; font-weight: 500; backdrop-filter: blur(8px);
}
.af-item span:first-child { font-size: 18px; }

.auth-testimonial {
  color: rgba(255,255,255,0.85); font-size: 14px; font-style: italic; line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; position: relative; z-index: 1;
}
.auth-testimonial strong { display: block; margin-top: 8px; font-style: normal; color: #fff; }

/* RIGHT PANEL */
.auth-panel-right {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; background: var(--gc-bg); overflow-y: auto;
}
.auth-form-wrap { width: 100%; max-width: 420px; }
.theme-toggle-btn {
  position: absolute; top: 20px; right: 20px; background: var(--gc-bg-card);
  border: 1px solid var(--gc-border); border-radius: 10px; padding: 8px 12px;
  font-size: 18px; cursor: pointer; transition: all 0.3s;
}
.theme-toggle-btn:hover { border-color: var(--gc-green); }
.auth-form-header { margin-bottom: 32px; }
.auth-form-header h1 { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-bottom: 6px; }
.auth-form-header p { color: var(--gc-text-muted); font-size: 15px; }

.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 18px; padding: 4px;
  line-height: 1;
}

.auth-divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0;
  color: var(--gc-text-light); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gc-border);
}

.demo-btn {
  width: 100%; padding: 12px; background: var(--gc-bg);
  border: 1.5px solid var(--gc-border); border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
  font-family: 'Sora', sans-serif; color: var(--gc-text);
}
.demo-btn:hover { border-color: var(--gc-green); color: var(--gc-green); background: var(--gc-green-light); }

.auth-switch { text-align: center; font-size: 14px; color: var(--gc-text-muted); margin-top: 24px; }
.auth-link { color: var(--gc-green); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* OTP inputs */
.otp-group { display: flex; gap: 12px; justify-content: center; margin: 24px 0; }
.otp-input {
  width: 52px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  border: 2px solid var(--gc-border); border-radius: 12px; background: var(--gc-bg);
  color: var(--gc-text); outline: none; transition: all 0.3s; font-family: 'Space Mono', monospace;
}
.otp-input:focus { border-color: var(--gc-green); box-shadow: 0 0 0 3px rgba(0,200,83,0.15); }

/* Password strength bar */
.pw-strength-bar-wrap { height: 4px; background: var(--gc-border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.pw-strength-bar { height: 100%; width: 0; border-radius: 2px; transition: all 0.4s; }
.pw-strength-label { font-size: 12px; color: var(--gc-text-muted); margin-top: 4px; }

/* Register specific */
.register-steps { display: flex; gap: 8px; margin-bottom: 32px; }
.reg-step {
  flex: 1; height: 4px; background: var(--gc-border); border-radius: 2px; transition: all 0.4s;
}
.reg-step.active { background: var(--gc-green); }
.reg-step.done { background: var(--gc-green-dark); }

/* Responsive */
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: 24px 20px; align-items: flex-start; padding-top: 60px; }
  .theme-toggle-btn { position: fixed; }
}

/* ============================================================
   Page Footer
   ============================================================ */
.auth-page-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gc-border);
  text-align: center;
  font-size: 12px;
  color: var(--gc-text-muted);
  line-height: 1.9;
}
.auth-page-footer a {
  color: var(--gc-text-muted);
  text-decoration: none;
}
.auth-page-footer a:hover {
  color: var(--gc-green);
}
