/* ═══════════════════════════════
   NEXORA.AI LOGIN PAGE STYLES
═══════════════════════════════ */

:root {
  --red:       #E53935;
  --red-dark:  #C62828;
  --white:     #FFFFFF;
  --bg:        #F8F9FB;
  --dark:      #121212;
  --gray:      #6B7280;
  --border:    #E5E7EB;
  --success:   #10B981;
  --warning:   #f59e0b;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

body.auth-page {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all .2s; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }

.red   { color: var(--red); }
.green { color: var(--success); }
.hidden { display: none !important; }

/* ── AUTH NAVBAR ── */
.auth-navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.auth-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { width: 40px; height: 36px; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 1px;
}
.logo-ai { color: var(--red); }

.auth-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth-nav-link {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--gray);
  transition: color .2s;
}
.auth-nav-link:hover { color: var(--red); }
.btn-signup {
  padding: 8px 18px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 700;
  transition: background .2s;
  border: none;
  cursor: pointer;
}
.btn-signup:hover { background: var(--red-dark); color: #fff; }

/* ── MAIN AUTH LAYOUT ── */
.auth-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 60px;
}

/* ── LEFT PANEL ── */
.auth-left {
  background: linear-gradient(145deg, #0d0d0d 0%, #1a0303 50%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,57,53,0.18), transparent 70%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -10%; left: -5%;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,57,53,0.08), transparent 70%);
  pointer-events: none;
}

.auth-left-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
}

.auth-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.25);
  color: #ff7070;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.auth-left-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 16px;
}
.auth-left-title .red { color: var(--red); }

.auth-left-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 380px;
}

/* TRUST FEATURES */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.auth-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.af-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.af-text strong {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
}
.af-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* STATS */
.auth-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.auth-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-stat strong {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.3px;
}
.auth-stat span { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.auth-stat-div { width: 1px; height: 28px; background: rgba(255,255,255,0.1); }

/* DECORATIVE GRAPHIC */
.auth-graphic {
  position: relative;
  height: 170px;
}
.ag-card {
  position: absolute;
  background: rgba(18,18,18,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
}
.ag-card-1 {
  left: 0; bottom: 0;
  width: 200px;
}
.ag-card-2 {
  right: 40px; top: 0;
  min-width: 130px;
}
.ag-card-3 {
  right: 10px; bottom: 20px;
  min-width: 130px;
}
.ag-card-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.ag-card-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.ag-card-value.green { color: var(--success); }
.ag-card-value.red   { color: var(--red); }
.ag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-bottom: 6px;
  animation: pulse-dot 1.5s infinite;
}
.ag-dot.green { background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.ag-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin-top: 8px;
}
.ag-bar {
  flex: 1;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
.ag-bar.up { background: var(--red); }

.ag-float-badge {
  position: absolute;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  animation: floatBob 3s ease-in-out infinite;
}
.ag-float-badge i { color: var(--red); }
.f1 { top: 10px; left: 210px; animation-delay: 0s; }
.f2 { bottom: 60px; right: 0; animation-delay: 1.5s; }
@keyframes floatBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── RIGHT PANEL ── */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #F8F9FB;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CARD HEADER */
.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.auth-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 5px;
}
.auth-card-sub {
  font-size: 0.87rem;
  color: var(--gray);
}

/* ALERT */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeIn .25s ease;
}
.auth-alert.error {
  background: rgba(229,57,53,0.08);
  border: 1px solid rgba(229,57,53,0.2);
  color: var(--red);
}
.auth-alert.success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--success);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FORM */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forgot-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  transition: color .2s;
}
.forgot-link:hover { color: var(--red-dark); }

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.form-icon {
  position: absolute;
  left: 13px;
  color: #bbb;
  font-size: 0.85rem;
  pointer-events: none;
  transition: color .2s;
}
.form-input {
  width: 100%;
  padding: 12px 42px 12px 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--dark);
  background: #fff;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: #bbb; }
.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.08);
}
.form-input:focus ~ .form-icon,
.form-input-wrap:focus-within .form-icon {
  color: var(--red);
}

/* validation states */
.form-group.valid .form-input   { border-color: var(--success); }
.form-group.invalid .form-input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,0.07); }
.form-group.valid .form-icon    { color: var(--success); }
.form-group.invalid .form-icon  { color: var(--red); }

.form-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #bbb;
  font-size: 0.87rem;
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
  display: flex;
  align-items: center;
}
.form-eye-btn:hover { color: var(--gray); }

.form-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 500;
  margin-top: 2px;
  animation: fadeIn .2s ease;
}
.form-error i { font-size: 0.7rem; }

/* REMEMBER ME */
.form-remember { display: flex; align-items: center; }
.remember-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--gray);
  user-select: none;
}
.remember-label input[type="checkbox"] { display: none; }
.remember-custom {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.remember-label input:checked + .remember-custom {
  background: var(--red);
  border-color: var(--red);
}
.remember-label input:checked + .remember-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  color: #fff;
}

/* SUBMIT BUTTON */
.auth-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(229,57,53,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.auth-submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left .5s;
}
.auth-submit-btn:hover::before { left: 100%; }
.auth-submit-btn:hover:not(:disabled) {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229,57,53,0.4);
}
.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.auth-submit-btn.loading { background: var(--red-dark); }

/* DIVIDER */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-size: 0.78rem;
  color: #ccc;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* SOCIAL BUTTONS */
.social-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.social-btn:hover {
  border-color: var(--gray);
  background: var(--bg);
  transform: translateY(-1px);
}

/* SWITCH LINK */
.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 18px;
}
.auth-switch-link {
  color: var(--red);
  font-weight: 700;
  margin-left: 4px;
  transition: color .2s;
}
.auth-switch-link:hover { color: var(--red-dark); }

/* SECURITY NOTE */
.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.72rem;
  color: #bbb;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.auth-security-note i { color: var(--success); }

/* ── FOOTER STRIP ── */
.auth-footer-strip {
  background: var(--dark);
  padding: 14px 0;
}
.auth-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.auth-footer-inner span { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.auth-footer-links { display: flex; gap: 18px; }
.auth-footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color .2s; }
.auth-footer-links a:hover { color: var(--red); }

/* ── RESPONSIVE ── */
@media(max-width:1024px) {
  .auth-main { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; background: var(--bg); min-height: calc(100vh - 60px); }
}

@media(max-width:480px) {
  .auth-card { padding: 28px 22px; }
  .auth-card-title { font-size: 1.4rem; }
  .social-btns { grid-template-columns: 1fr; }
  .auth-footer-inner { flex-direction: column; text-align: center; }
}