/* ============================================================
   Project Archon — Auth Pages CSS (Login/Register)
   Centered auth cards with split layout
   ============================================================ */

/* ── Auth Layout ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

/*overlay background*/
.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
}

.hidden {
    display: none;
}
/* Background glows */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-full);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.auth-page::before {
  top: -200px;
  left: -200px;
  background: rgba(0, 230, 118, 0.08);
}

.auth-page::after {
  bottom: -200px;
  right: -200px;
  background: rgba(41, 98, 255, 0.08);
}

.auth-container {
  width: 100%;
  max-width: 1000px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ── Auth Info (Left Side) ───────────────────────────────── */
.auth-info {
  flex: 1;
  padding: var(--space-12);
  background: linear-gradient(135deg, rgba(41, 98, 255, 0.05), rgba(0, 230, 118, 0.05));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-color);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-12);
}

.auth-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--text-inverse);
  box-shadow: var(--shadow-primary);
}

.auth-logo-text {
  font-size: var(--text-lg);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
}

.auth-info-content h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.auth-info-content p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3); 
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.auth-feature i {
  color: var(--primary);
  background: var(--primary-glow);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Auth Form (Right Side) ──────────────────────────────── */
.auth-form-wrap {
  flex: 1;
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  margin-bottom: var(--space-8);
  text-align: center;
}

.auth-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.auth-header p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Password input with toggle icon placeholder */
.input-icon-wrap {
  position: relative;
}

.input-icon-wrap input {
  padding-right: 2.5rem;
}

.input-icon-wrap i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  color: var(--text-secondary);
}

.auth-checkbox input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.auth-link {
  color: var(--primary);
  font-weight: var(--fw-medium);
  transition: opacity var(--transition-base);
}

.auth-link:hover {
  opacity: 0.8;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-block: var(--space-6);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before { margin-right: var(--space-4); }
.auth-divider:not(:empty)::after  { margin-left: var(--space-4); }

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-container {
    flex-direction: column;
  }
  .auth-info {
    display: none; /* Hide info on small screens to save space */
  }
  .auth-form-wrap {
    padding: var(--space-8);
  }
}

@media (max-width: 480px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }
  .auth-social {
    grid-template-columns: 1fr;
  }
}

.error-message {
  font-size: var(--text-sm);
  color: red;
  margin-top: var(--space-2);
}

/* Hide native Edge/IE password reveal icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

.auth-logo-img { height: 120px; width: auto; object-fit: contain; margin-bottom: 20px; mix-blend-mode: screen; clip-path: inset(2% 0); }
