/* OpenSeoLab — Luxury Auth Modal (Google & 6-Digit Resend OTP) */

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #0d1124;
  background: linear-gradient(180deg, #10162f 0%, #0a0d1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.12);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  box-sizing: border-box;
}

.auth-modal-overlay.active .auth-modal-card {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: scale(1.05);
}

.auth-modal-logo {
  text-align: center;
  margin-bottom: 20px;
}

.auth-modal-logo img {
  height: 38px;
  width: auto;
  display: inline-block;
}

.auth-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.auth-modal-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  text-align: center;
  margin: 0 0 26px 0;
  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;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  text-align: center;
  line-height: 1.4;
}

.auth-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  background: #141b33;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.auth-btn-google:hover {
  background: #1c2546;
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-1px);
}

.auth-or-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-or-divider span {
  padding: 0 14px;
}

.auth-btn-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: #f1f5f9;
  border: none;
  border-radius: 14px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.auth-btn-email:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.auth-input-group {
  margin-bottom: 18px;
  text-align: left;
}

.auth-input-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.auth-input-text {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input-text:focus {
  border-color: #00f2fe;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}

.auth-input-otp {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 14px;
  color: #00f2fe;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 10px;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.auth-input-otp:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.auth-btn-primary {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border: none;
  border-radius: 14px;
  color: #070913;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.45);
}

.auth-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-footer-nav {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.auth-link-back {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  transition: color 0.2s;
}

.auth-link-back:hover {
  color: #ffffff;
}

.auth-link-resend {
  background: none;
  border: none;
  color: #00f2fe;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  font-weight: 600;
}

.auth-terms-note {
  font-size: 0.74rem;
  color: #64748b;
  text-align: center;
  margin-top: 22px;
  line-height: 1.45;
}

.auth-dev-badge {
  font-size: 0.8rem;
  color: #10b981;
  margin-top: 8px;
  text-align: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
}
