/* ==========================================================================
   Chester — Login / Sign In (DeepSeek Minimalist Split Screen)
   ========================================================================== */

/* Typography */
@font-face {
  font-family: 'universalSans';
  src: url('/fonts/UniversalSansGX.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'universalSansDisplay';
  src: url('/fonts/UniversalSansDisplayGX.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #050507;
  --bg-panel: #070709;
  --bg-input: rgba(255, 255, 255, 0.035);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-focus: #5683da;

  --text-pure: #ffffff;
  --text-high: #e6e6ea;
  --text-muted: #888894;
  --text-faint: #52525e;

  --accent-steel: #5683da;
  --accent-steel-glow: rgba(86, 131, 218, 0.35);
  --accent-violet: #b855e7;
  --accent-ember: #ff6b35;

  --font-sans: 'universalSans', Inter, system-ui, sans-serif;
  --font-display: 'universalSansDisplay', 'Inter Display', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'GeistMono', ui-monospace, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-pure);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Reset defensivo: los controles nativos no heredan la fuente del body por
   defecto (el UA stylesheet les fuerza la fuente del sistema). */
button,
input,
select,
textarea {
  font-family: inherit;
}

.login-viewport {
  display: flex;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

/* ============================================================
   Left Column: Aurora Borealis / Flame Hero Artwork
   ============================================================ */
.login-cover-panel {
  position: relative;
  width: 44%;
  min-width: 440px;
  height: 100%;
  overflow: hidden;
  background-color: #030305;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-artwork-layer {
  position: absolute;
  inset: 0;
  background-image: url('/panel/assets/login_aurora.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: contrast(1.05) brightness(0.9);
}

.cover-artwork-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 3, 5, 0.25) 0%, rgba(3, 3, 5, 0.75) 80%, #030305 100%),
    radial-gradient(circle at 50% 50%, rgba(5, 5, 7, 0.1) 0%, rgba(3, 3, 5, 0.8) 100%);
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 2;
  padding: 0 64px;
  max-width: 580px;
}

.hero-brand-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-brand-desc {
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 34px;
  max-width: 440px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.btn-hero-docs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #ffffff;
  color: #08080b;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.btn-hero-docs:hover {
  background: #dcdce2;
}

/* ============================================================
   Right Column: Minimalist Sign-in Form
   ============================================================ */
.login-form-panel {
  flex: 1;
  height: 100%;
  background-color: var(--bg-panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px 24px 32px;
  position: relative;
}

.form-container {
  width: 100%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Platform Brand Badge */
.platform-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.login-brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.brand-logotype {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.platform-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--text-high);
}

/* Auth Form */
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  width: 100%;
  position: relative;
}

.form-field input {
  width: 100%;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0 16px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-field input::placeholder {
  color: #555562;
  font-size: 0.86rem;
}

.form-field input:hover {
  border-color: var(--border-hover);
}

.form-field input:focus {
  border-color: var(--accent-steel);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(86, 131, 218, 0.15);
}

/* Password field with eye toggle */
.password-field input {
  padding-right: 44px;
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #666675;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
}

.btn-toggle-eye:hover {
  color: #ffffff;
}

/* Terms Disclaimer */
.terms-disclaimer {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #60606e;
  margin-top: -2px;
  margin-bottom: 2px;
}

.terms-disclaimer a {
  color: #888898;
  text-decoration: underline;
  transition: color 0.18s;
}

.terms-disclaimer a:hover {
  color: #ffffff;
}

/* Aux links (Forgot password / Sign up) */
.form-aux-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  margin: 2px 0 6px 0;
}

.aux-link {
  color: #828292;
  text-decoration: none;
  transition: color 0.18s;
}

.aux-link:hover {
  color: #ffffff;
}

.aux-link.highlight {
  color: var(--text-high);
  font-weight: 500;
}

.aux-link.highlight:hover {
  color: var(--accent-steel);
}

/* Primary Log In Button (DeepSeek white pill) */
.btn-submit-action {
  width: 100%;
  height: 42px;
  border-radius: 9999px;
  background: #ffffff;
  color: #070709;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.btn-submit-action:hover {
  background: #dcdce2;
}

.btn-submit-action:active {
  background: #c8c8d0;
}

/* Social Google Login Link */
.social-login-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.btn-google-action {
  background: transparent;
  border: none;
  color: #888898;
  font-family: var(--font-sans);
  font-size: 0.80rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-google-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

/* Feedback Message */
.login-feedback {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  width: 100%;
  text-align: center;
}

.login-feedback.error {
  background: rgba(255, 71, 87, 0.12);
  border: 1px solid rgba(255, 71, 87, 0.25);
  color: #ff6b81;
}

.login-feedback.success {
  background: rgba(86, 131, 218, 0.12);
  border: 1px solid rgba(86, 131, 218, 0.25);
  color: var(--accent-steel);
}

.login-feedback.info {
  background: rgba(184, 85, 231, 0.12);
  border: 1px solid rgba(184, 85, 231, 0.3);
  color: #e2b3f8;
  line-height: 1.45;
}

.unverified-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-resend-token {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-resend-token:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.login-footer {
  position: absolute;
  bottom: 24px;
  font-size: 0.70rem;
  color: #555566;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-footer-contact {
  background: transparent;
  border: none;
  color: #888898;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.18s ease;
}

.btn-footer-contact:hover {
  color: #ffffff;
}

/* Contact Modal */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: scaleInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #727282;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.btn-close-modal:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.contact-modal-header {
  margin-bottom: 22px;
}

.contact-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.contact-modal-desc {
  font-size: 0.82rem;
  color: #888898;
  line-height: 1.45;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  resize: vertical;
  min-height: 90px;
  transition: all 0.2s ease;
}

.contact-form textarea::placeholder {
  color: #555562;
  font-size: 0.86rem;
}

.contact-form textarea:hover {
  border-color: var(--border-hover);
}

.contact-form textarea:focus {
  border-color: var(--accent-steel);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(86, 131, 218, 0.15);
}

/* ============================================================
   Language Switcher Pill (Top-Right)
   ============================================================ */
.login-lang-corner {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 25;
}

.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.lang-switch-pill:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.lang-pill-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #888894;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lang-pill-btn:hover {
  color: #ffffff;
}

.lang-pill-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hidden {
  display: none !important;
}

/* ============================================================
   Responsive Layout
   ============================================================ */
@media (max-width: 900px) {
  .login-lang-corner {
    top: 16px;
    right: 16px;
  }
  .login-viewport {
    flex-direction: column;
    overflow-y: auto;
  }

  .login-cover-panel {
    width: 100%;
    min-width: unset;
    height: 320px;
    padding: 32px 24px;
  }

  .cover-content {
    padding: 0;
  }

  .hero-brand-title {
    font-size: 2.1rem;
    margin-bottom: 12px;
  }

  .hero-brand-desc {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .login-form-panel {
    width: 100%;
    height: auto;
    padding: 48px 24px 80px 24px;
  }

  .login-footer {
    position: relative;
    bottom: unset;
    margin-top: 48px;
  }
}
.verification-card { text-align:center; padding:24px; border:1px solid #303047; border-radius:16px; background:#0b0b10; }
.verification-card h2 { color:#e6e6ea; font-size:22px; margin:12px 0; }
.verification-card p { line-height:1.6; margin:12px 0; }
.verification-card strong { display:block; color:#e6e6ea; overflow-wrap:anywhere; }
.verification-icon { font-size:36px; color:#5683da; }
.verification-success { color:#4ade80; }
.verification-error { color:#f87171; }
.verification-card button { max-width:100%; white-space:normal; min-height:44px; }
