/* ==========================================================================
   0DEVELOPER - UNIFIED AUTHENTICATION STYLESHEET (auth.css)
   ========================================================================== */

/* --- 1. Global Variables & Theme Tokens --- */
:root {
  /* Surfaces & Backgrounds */
  --bg-dark: #0e131f;
  --bg-canvas: #0f172a;
  --bg-panel: #1e293b;
  --bg-input: rgba(0, 0, 0, 0.3);

  /* Text Colors */
  --text-bright: #ffffff;
  --text-primary: #f8fafc;
  --text-muted: #8a99ad;

  /* Accent Colors */
  --accent-cyan: #00f2fe;
  --accent-cyan-hover: #00d8e4;
  --accent-cyan-bg: rgba(0, 242, 254, 0.1);
  --accent-emerald: #10b981;
  --accent-warning: #ffb74d;
  --accent-warning-bg: rgba(255, 183, 77, 0.1);
  --accent-error: #ff5555;
  --accent-error-bg: rgba(255, 85, 85, 0.15);

  /* Borders & Glows */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #00f2fe;
  --border-glow: rgba(0, 242, 254, 0.25);

  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Fira Code", "JetBrains Mono", monospace;
}

/* --- 2. Base Reset & Typography --- */
* {
  box-sizing: border-box;
}
/* Base Body Styles */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;


  
  
}


/* Class added by JS once the image finishes downloading */
body.car-loaded::before {
  opacity: 0.18; /* Final subtle visibility */
}
/* Base Utility Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 3. Top Navigation Bar --- */
.navbar {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(14, 19, 31, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
  display: flex;
  align-items: center;
}

.brand-title span.brand-0-icon,
.brand-0-icon {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-right: 2px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-bright);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-bright);
  border: 1px solid var(--border-color);
}

.btn-nav-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-nav-primary {
  background: var(--accent-cyan);
  color: #0b192c;
  border: 1px solid var(--accent-cyan);
}

.btn-nav-primary:hover {
  background: var(--accent-cyan-hover);
  box-shadow: 0 0 10px var(--border-glow);
}

/* --- 4. Main Auth Layout & Glass Card Container --- */
.auth-section,
.hero,
.login-section,
.signup-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 20px;
}

.auth-card,
.reset-card,
.signup-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

/* System Tag Header / Badges */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.2);
  font-size: 11px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-tag.warning-tag {
  color: var(--accent-warning);
  background: var(--accent-warning-bg);
  border-color: rgba(255, 183, 77, 0.2);
}

.card-title {
  color: var(--text-bright);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 24px 0;
  text-align: center;
  line-height: 1.6;
}

/* Status Icon Wrapper (For 404/Success screens) */
.icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--accent-warning-bg);
  border: 1px solid rgba(255, 183, 77, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--accent-warning);
}

/* --- 5. Forms, Labels, and Inputs --- */
.auth-form,
.signup-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 42px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px var(--border-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Dynamic Alert Messaging */
.alert-error {
  background-color: var(--accent-error-bg);
  border: 1px solid rgba(255, 85, 85, 0.4);
  color: var(--accent-error);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-align: center;
  margin-bottom: 18px;
}

/* Dynamic Highlight Spans */
.email-highlight {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-all;
}

/* --- 6. Buttons & Grid Actions --- */
.btn-submit,
.btn-primary-dev,
.btn-cyber-primary {
  width: 100%;
  height: 44px;
  background-color: var(--accent-cyan);
  color: #0b192c;
  border: 1px solid var(--accent-cyan);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-submit:hover,
.btn-primary-dev:hover,
.btn-cyber-primary:hover {
  background-color: var(--accent-cyan-hover);
  box-shadow: 0 0 12px var(--border-glow);
}

.btn-outline-dev {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-bright);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  height: 44px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-dev:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Actions Grid (For Multi-button Cards like 404 / Reset) */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 400px) {
  .actions-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 7. OAuth Social Buttons & Dividers --- */
.divider,
.divider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  gap: 12px;
}

.divider-line {
  flex: 1;
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0;
}

.divider-text {
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
}

.oauth-container,
.oauth-group {
  display: flex;
  gap: 12px;
}

.btn-oauth,
.oauth-btn {
  flex: 1;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background-color: var(--bg-input);
  text-decoration: none;
}

.btn-oauth:hover,
.oauth-btn:hover {
  border-color: var(--accent-cyan);
  background-color: var(--accent-cyan-bg);
}

.btn-oauth img,
.oauth-btn img,
.oauth-icon {
  height: 20px;
  width: auto;
}

/* --- 8. Card Footers & Inline Links --- */
.footer-text,
.login-prompt {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-text a,
.login-link,
.link-inline {
  color: var(--accent-cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: opacity 0.2s ease;
}

.footer-text a:hover,
.login-link:hover,
.link-inline:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Password Input Wrapper & Toggle Button */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper .form-input {
  padding-right: 60px; /* Space for the toggle button */
}

.toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  user-select: none;
}

.toggle-btn:hover {
  color: var(--accent-cyan);
}

/* Client-side Validation Inline Error */
.client-error {
  color: var(--error-color, #ff5555);
  font-family: var(--font-mono);
  font-size: 11px;
  margin: 6px 0 0 0;
  display: none;
}