/* ═══════════════════════════════════════════════════════════
   BlackSIM — Lightweight Auth Stylesheet (Rivoner Architecture)
   Adapted to BlackSIM Dark High-Tech DNA & Zero-KYC Philosophy
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-brand: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;

  /* BlackSIM Brand DNA */
  --black: #060a0f;
  --black-2: #080d14;
  --card: #0a0f16;
  --card-subtle: #04070a;
  --white: #ffffff;
  --gray: #e0e0e0;

  /* White Opacity Ladder */
  --w80: rgba(255, 255, 255, 0.80);
  --w70: rgba(255, 255, 255, 0.70);
  --w50: rgba(255, 255, 255, 0.50);
  --w35: rgba(255, 255, 255, 0.35);
  --w15: rgba(255, 255, 255, 0.15);
  --w10: rgba(255, 255, 255, 0.10);
  --w05: rgba(255, 255, 255, 0.05);

  /* Accents */
  --green: #31dc61;
  --green-hover: #3cf470;
  --green-glow: rgba(49, 220, 97, 0.18);
  --green-border: rgba(49, 220, 97, 0.4);

  --blue: #1268f1;
  --blue-hover: #297cff;
  --blue-dark: #0f5dd9;
  --shadow-btn: 0 4px 14px rgba(18, 104, 241, 0.3);

  --border: rgba(255, 255, 255, 0.12);
  --border-focus: #1268f1;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-card: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--blue-hover);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover {
  color: var(--white);
  text-decoration: underline;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Chrome autofill dark fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 50px #04070a inset !important;
  -webkit-text-fill-color: var(--white) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Split Layout (Rivoner Style) ─── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 992px) {
  .auth-layout {
    grid-template-columns: 48% 52%;
  }
}
@supports (min-height: 100dvh) {
  .auth-layout, .auth-form-col {
    min-height: 100dvh;
  }
}

/* ─── Left Form Column ─── */
.auth-form-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem clamp(1.5rem, 4.5vw, 4rem);
  min-height: 100vh;
  background-color: var(--black);
}

.auth-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--white);
  user-select: none;
}
.brand-icon {
  width: 28px;
  height: 28px;
  display: block;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-core { color: var(--white); font-weight: 700; }
.brand-div { color: var(--green); font-weight: 500; }
.brand-suffix { color: var(--gray); font-weight: 600; }

.auth-form-box {
  max-width: 410px;
  width: 100%;
  margin: 2rem auto;
}

.auth-form-title {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.auth-form-subtitle {
  font-size: 14.5px;
  color: var(--w70);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.auth-form-group {
  margin-bottom: 1rem;
}

.auth-input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--w80);
  margin-bottom: 6px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--card-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--white);
  transition: all 120ms ease;
  outline: none;
}
.auth-input.mono-format {
  font-family: var(--mono);
  font-size: 15.5px;
  letter-spacing: 2px;
  color: var(--green);
}
.auth-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 104, 241, 0.22);
}
.auth-input::placeholder {
  color: var(--w35);
  font-family: var(--font);
  letter-spacing: normal;
}
.auth-input.has-toggle {
  padding-right: 46px;
}

/* Hide browser default password reveal icons (Edge, IE, Safari) */
input::-ms-reveal,
input::-ms-clear {
  display: none !important;
}

.auth-input-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--w50);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease;
  user-select: none;
}
.auth-input-toggle:hover {
  color: var(--white);
}
.auth-input-toggle .eye-visible {
  display: none;
}
.auth-input-toggle.is-active .eye-visible {
  display: block;
}
.auth-input-toggle.is-active .eye-hidden {
  display: none;
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  margin-bottom: 1.25rem;
}
.auth-forgot-link {
  font-size: 13px;
  color: var(--w70);
  font-weight: 500;
}
.auth-forgot-link:hover {
  color: var(--blue-hover);
}

/* Primary Button */
.btn-auth-primary {
  width: 100%;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 140ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-btn);
  margin-bottom: 12px;
  text-decoration: none !important;
}
.btn-auth-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 6px 18px rgba(18, 104, 241, 0.4);
}
.btn-auth-primary:active {
  background: var(--blue-dark);
}

.btn-auth-secondary {
  width: 100%;
  height: 48px;
  background: var(--green);
  color: #04070a;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 140ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
}
.btn-auth-secondary:hover {
  background: var(--green-hover);
}

.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--w70);
  margin-top: 8px;
}
.auth-switch a {
  font-weight: 600;
  color: var(--green);
}
.auth-switch a:hover {
  color: var(--white);
}

/* 16-Digit Generated Box */
.acct-reveal-box {
  background: var(--card-subtle);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 18px;
}
.acct-reveal-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 6px;
}
.acct-reveal-number {
  font-family: var(--mono);
  font-size: clamp(21px, 3.2vw, 26px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  user-select: all;
  margin-bottom: 10px;
}
.btn-copy-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--w15);
  color: var(--w80);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 120ms ease;
}
.btn-copy-mini:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* 12-Word Recovery Token Grid */
.recovery-grid-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.recovery-grid-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.recovery-grid-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--w70);
}
.words-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.word-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--card-subtle);
  border: 1px solid var(--w10);
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  border-radius: 4px;
}
.word-idx {
  font-size: 10px;
  color: var(--w35);
  font-weight: 700;
}
.word-txt {
  color: var(--green);
  font-weight: 600;
}

/* Alerts */
.auth-alert {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}
.auth-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.auth-alert.success {
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  color: #86efac;
}

/* ─── Footer ─── */
.auth-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--w10);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-footer-partner {
  font-size: 12px;
  line-height: 1.5;
  color: var(--w50);
}
.auth-footer-partner strong {
  color: var(--w70);
  font-weight: 600;
}
.auth-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11.5px;
  color: var(--w35);
}
.auth-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-footer-links a {
  color: var(--w50);
  text-decoration: none;
}
.auth-footer-links a:hover {
  color: var(--white);
}
.auth-footer-sep {
  color: var(--w15);
}

/* ─── Right Visual Column (Rivoner Style with BlackSIM Mast & Aura) ─── */
.auth-visual-col {
  display: none;
  padding: 16px;
  background-color: var(--black);
}
@media (min-width: 992px) {
  .auth-visual-col {
    display: flex;
  }
}

.auth-card-dark {
  background-color: var(--black-2);
  background-image:
    linear-gradient(180deg, rgba(6, 10, 15, 0.6) 0%, rgba(6, 10, 15, 0.1) 35%, rgba(6, 10, 15, 0.3) 65%, rgba(6, 10, 15, 0.92) 94%),
    url('../assets/images/covert-router.jpg');
  background-size: cover;
  background-position: center right;
  border-radius: var(--radius-card);
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 32px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: var(--white);
  padding: 3rem 2.5rem;
  border: 1px solid var(--w10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  user-select: none;
}

/* Aura Glow Graphic */
.aura-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}
.aura-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 220, 97, 0.22) 0%, transparent 70%);
  animation: pulseAura 4s ease-in-out infinite alternate;
}
@keyframes pulseAura {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}
.aura-logo {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #080d14;
  border: 1px solid rgba(49, 220, 97, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.auth-card-heading {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin-top: auto;
}
.auth-card-lead {
  font-family: var(--font);
  font-size: 1.15rem;
  color: var(--w70);
  font-weight: 400;
  margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.auth-card-bold {
  font-family: var(--font-brand);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* Accepted Coins Pill Row in Card */
.auth-card-coins {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 10, 15, 0.75);
  border: 1px solid var(--w10);
  padding: 6px 16px;
  border-radius: 9999px;
  margin-top: 14px;
}
.auth-card-coins img {
  width: 17px;
  height: 17px;
}

@media (max-width: 480px) {
  .words-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-form-col { padding: 2rem 1.25rem; }
  .auth-form-title { font-size: 1.75rem; }
}
