/* =========================================
   MOISES STUDIO — SIGNUP CSS
   Mobile-first, responsive
   ========================================= */

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

:root {
  --green: #c9a227;
  --green-dark: #a8861f;
  --green-glow: rgba(201, 162, 39, 0.15);
  --black: #080808;
  --dark: #0f0f0f;
  --dark2: #161616;
  --dark3: #1e1e1e;
  --dark4: #272727;
  --border: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(201, 162, 39, 0.5);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --error: #ff5c5c;
  --error-bg: rgba(255, 92, 92, 0.08);
  --font: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --t: 0.2s ease;
}

html {
  height: 100%;
}
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text-primary);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}
input {
  font-family: var(--font);
}

/* =========================================
   FONDO DECORATIVO
   ========================================= */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.07) 0%,
    transparent 70%
  );
  top: -100px;
  right: -80px;
}
.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(5, 80, 200, 0.05) 0%,
    transparent 70%
  );
  bottom: -80px;
  left: -80px;
}
.bg-glow-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.04) 0%,
    transparent 70%
  );
  top: 50%;
  left: 30%;
  transform: translateY(-50%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 40%,
    transparent 100%
  );
}

/* =========================================
   LAYOUT
   ========================================= */
.auth-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================
   PANEL LATERAL — solo desktop
   ========================================= */
.auth-side {
  display: none;
}

/* =========================================
   PANEL PRINCIPAL
   ========================================= */
.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 24px;
  min-height: 100vh;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

/* =========================================
   AUTH CARD
   ========================================= */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: cardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================
   VISTAS
   ========================================= */
.auth-view {
  animation: viewIn 0.3s ease both;
}
.auth-view[hidden] {
  display: none;
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   HEADER
   ========================================= */
.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

/* Badge "¡Es gratis!" */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.2;
}
.auth-header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =========================================
   OAUTH BUTTONS
   ========================================= */
.oauth-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.oauth-btn:hover {
  background: var(--dark4);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.oauth-btn:active {
  transform: translateY(0);
}

/* Fila de iconos pequeños (Apple / Facebook / X) */
.oauth-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.oauth-btn-icon {
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.oauth-btn-icon:hover {
  color: var(--text-primary);
}

/* =========================================
   DIVIDER
   ========================================= */
.auth-divider[hidden] { display: none; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.email-suggestion {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.email-suggestion-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #d8b447;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================
   FORMULARIO
   ========================================= */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--t);
}
.input-wrap input {
  width: 100%;
  padding: 11px 42px 11px 38px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  -webkit-appearance: none;
}
.input-wrap input::placeholder {
  color: var(--text-muted);
}
.input-wrap input:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.input-wrap input:focus {
  border-color: var(--border-focus);
  background: var(--dark4);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.input-wrap:focus-within .input-icon {
  color: var(--green);
}
.input-wrap input.is-error {
  border-color: rgba(255, 92, 92, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.1);
}
.input-wrap input.is-valid {
  border-color: rgba(201, 162, 39, 0.4);
}

.toggle-password {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color var(--t);
}
.toggle-password:hover {
  color: var(--text-secondary);
}

.field-error {
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
}
.field-error:empty {
  display: none;
}

/* =========================================
   FUERZA DE CONTRASEÑA
   ========================================= */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.password-strength[hidden] {
  display: none;
}
.strength-bar {
  flex: 1;
  height: 3px;
  background: var(--dark4);
  border-radius: 100px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
}
.strength-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* =========================================
   CHECKBOX
   ========================================= */
.checkbox-group {
  margin-top: 2px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.checkbox-label input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox-custom {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--dark3);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t), background var(--t);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--green);
  border-color: var(--green);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 9px;
  height: 5px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg) translate(1px, -1px);
}
.checkbox-label:hover .checkbox-custom {
  border-color: rgba(255, 255, 255, 0.3);
}
.inline-link {
  color: var(--green);
  font-weight: 500;
}
.inline-link:hover {
  text-decoration: underline;
}

/* =========================================
   BOTÓN SUBMIT
   ========================================= */
.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--t), transform var(--t), box-shadow var(--t),
    opacity var(--t);
  margin-top: 4px;
}
.btn-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
}
.btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline-submit {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline-submit:hover {
  background: var(--dark3);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn-spinner {
  display: flex;
  align-items: center;
}
.btn-spinner[hidden] {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spin {
  animation: spin 0.8s linear infinite;
}

/* =========================================
   SWITCH
   ========================================= */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}
.switch-link {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  transition: opacity var(--t);
}
.switch-link:hover {
  opacity: 0.75;
}

/* =========================================
   VISTA: VERIFICACIÓN EMAIL
   ========================================= */
.verify-anim {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.verify-circle {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: verifyPulse 2.5s ease-in-out infinite;
}
@keyframes verifyPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.15);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(201, 162, 39, 0);
  }
}
.verify-check {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark2);
  animation: checkPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@keyframes checkPop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.verify-tips {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verify-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  line-height: 1.5;
}
.verify-tip svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-muted);
}

/* =========================================
   FOOTER NOTE
   ========================================= */
.auth-footer-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 380px;
}
.auth-footer-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t);
}
.auth-footer-note a:hover {
  color: var(--text-primary);
}

/* =========================================
   MODAL — RECUPERAR CONTRASEÑA
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 32px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
}
.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.modal-close:hover {
  background: var(--dark3);
  border-color: var(--border);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px 28px;
}
.modal-body h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.modal-body > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-modal-cancel {
  flex: 1;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn-modal-cancel:hover {
  background: var(--dark3);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-modal-submit {
  flex: 1.4;
  padding: 11px 16px;
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--t), transform var(--t), box-shadow var(--t),
    opacity var(--t);
  font-family: var(--font);
}
.btn-modal-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
}
.btn-modal-submit:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-modal-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal-state[hidden] {
  display: none;
}
#modalStateSuccess {
  position: relative;
}

.modal-success-body {
  padding: 32px 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.modal-success-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  animation: successPulse 2.5s ease-in-out infinite;
}
@keyframes successPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.15);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(201, 162, 39, 0);
  }
}
.modal-success-check {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--dark2);
  animation: checkPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.modal-success-body h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.modal-success-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 300px;
}
.btn-modal-done {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  flex: unset;
}
.modal-close-success {
  position: absolute;
  top: 16px;
  right: 16px;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================
   DESKTOP (≥ 1024px)
   ========================================= */
@media (min-width: 1024px) {
  .auth-layout {
    flex-direction: row;
    min-height: 100vh;
  }

  /* Panel lateral */
  .auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 440px;
    flex-shrink: 0;
    background: var(--dark);
    border-right: 1px solid var(--border);
    padding: 40px 40px 36px;
    position: relative;
    overflow: hidden;
  }
  .auth-side::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 340px;
    height: 340px;
    background: radial-gradient(
      circle,
      rgba(201, 162, 39, 0.07) 0%,
      transparent 70%
    );
    pointer-events: none;
  }
  .auth-side::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(
      circle,
      rgba(5, 100, 200, 0.05) 0%,
      transparent 70%
    );
    pointer-events: none;
  }

  .side-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    z-index: 1;
  }

  .side-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
  }

  /* Headline */
  .side-headline h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 10px;
  }
  .side-headline p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
  }

  /* Feature list */
  .side-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .side-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  .side-feature-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
  }
  .side-feature-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
  }
  .side-feature-item span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
  }

  /* Stats */
  .side-stats {
    display: flex;
    align-items: center;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    gap: 2px;
  }
  .stat-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.5px;
  }
  .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
  }

  /* Awards */
  .side-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
  }
  .award-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--dark2);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 100px;
  }

  /* Panel principal */
  .auth-main {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: var(--black);
  }
  .mobile-logo {
    display: none;
  }
  .auth-card {
    max-width: 460px;
    padding: 32px 32px;
  }
}

@media (min-width: 1280px) {
  .auth-side {
    width: 480px;
    padding: 48px 48px 40px;
  }
  .auth-card {
    max-width: 480px;
  }
  .side-headline h2 {
    font-size: 24px;
  }
}

/* =========================================
   MOBILE PEQUEÑO
   ========================================= */
@media (max-width: 380px) {
  .auth-card {
    padding: 22px 18px;
  }
  .auth-header h1 {
    font-size: 19px;
  }
  .oauth-btn {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* =========================================
   AUTOFILL OVERRIDE
   ========================================= */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #1e1e1e inset;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================================
   SCROLLBAR
   ========================================= */
/* Clara y más ancha (pedido de Roberto, 20/10): la oscura no se veía sobre el fondo negro */
html {
  scrollbar-color: #e8e8e8 #1a1a1a;
}
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background: #e8e8e8;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

.loader {
  width: 20px;
  height: 20px;
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-bottom-color: #111;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Aviso de cuenta personal, debajo de las contraseñas (Roberto, 07/10) */
.aviso-cuenta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-glow);
  border: 1px solid var(--border-focus);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.aviso-cuenta svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.aviso-cuenta strong { color: var(--text-primary); font-weight: 600; }


.google-app-note {
  max-width: 400px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.google-chrome-button {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}
