/* ============================================================
 * TucoxSMS — Auth Stylesheet (Login, Register & 2FA)
 * Liquid Glass Card & Weather Aesthetic
 * ============================================================ */

/* ─── HEADER ───────────────────────────────────────────────── */
.header {
  position: relative;
  z-index: 10;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--ocean-navy);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.12);
  color: var(--ocean-blue);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ocean-dark);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ─── AUTH WRAPPER ─────────────────────────────────────────── */
.main-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.90) 0%, rgba(240, 249, 255, 0.80) 100%);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 24px 60px -15px rgba(2, 132, 199, 0.28), 0 1px 0 0 rgba(255, 255, 255, 1) inset;
  position: relative;
}

/* ─── DECORATIVE VIDEO BANNER ─────────────────────────────── */
.auth-video-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  background: #050b14;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px -6px rgba(2, 132, 199, 0.2), 0 2px 6px rgba(0, 0, 0, 0.05);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: relative;
}

.auth-video-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--ocean-blue);
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ocean-navy);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.5;
}

/* ─── TAB PILLS SWITCHER ───────────────────────────────────── */
.tab-pills {
  display: flex;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: 99px;
  padding: 4px;
  margin-bottom: 26px;
}

.tab-btn {
  flex: 1;
  padding: 9px 16px;
  border: none;
  background: transparent;
  color: var(--ocean-dark);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn.active {
  background: #fff;
  color: var(--ocean-blue);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* ─── FORM CONTROLS ────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ocean-dark);
  margin-bottom: 8px;
}

.label-link {
  font-size: 12px;
  color: var(--ocean-blue);
  text-decoration: none;
  font-weight: 600;
}

.label-link:hover {
  text-decoration: underline;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--ocean-teal);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 42px;
  color: var(--ocean-navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.05);
  transition: all 0.25s ease;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  background: #fff;
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: 6px;
}

.password-toggle:hover {
  color: var(--ocean-navy);
}

/* ─── CONSENT CHECKBOX ─────────────────────────────────────── */
.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  background: rgba(240, 249, 255, 0.7);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: var(--radius-sm);
}

.consent-checkbox {
  margin-top: 3px;
  accent-color: var(--ocean-blue);
  cursor: pointer;
}

.consent-text {
  font-size: 12px;
  color: var(--ocean-dark);
  line-height: 1.45;
  cursor: pointer;
}

/* ─── SUBMIT BUTTON ────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.32);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.42);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── DEMO AUTO-FILL HELPER ────────────────────────────────── */
.demo-shortcut {
  margin-top: 24px;
  border-top: 1px solid rgba(2, 132, 199, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 249, 255, 0.75);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.demo-info {
  font-size: 12px;
  color: var(--ocean-dark);
  font-weight: 600;
}

.demo-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
  transition: all 0.2s;
}

.demo-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-1px);
}

/* ─── ALERTS ───────────────────────────────────────────────── */
.alert-banner {
  display: none;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.4;
  animation: fadeIn 0.2s ease-out;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 2FA view */
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
}

.otp-field {
  width: 48px;
  height: 56px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  color: var(--ocean-navy);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

.otp-field:focus {
  border-color: var(--ocean-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--ocean-dark);
  position: relative;
  z-index: 10;
}

.footer a {
  color: var(--ocean-blue);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

/* ─── MOBILE RESPONSIVENESS (< 768px) ──────────────────────── */
@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }

  .brand-text {
    font-size: 18px;
  }

  .main-wrap {
    padding: 16px 14px;
    align-items: flex-start;
  }

  .auth-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .auth-title {
    font-size: 21px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .otp-field {
    width: 42px;
    height: 50px;
    font-size: 18px;
  }

  .demo-shortcut {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }

  .demo-btn {
    width: 100%;
    padding: 8px 14px;
  }
}

