/* ============================================================
   COYA AUTH — auth.css  (login page styles)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 20% 90%, rgba(68,112,243,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 80% 10%, rgba(68,112,243,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(68,112,243,0.08) 0%, transparent 70%),
    var(--color-dark);
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────── */
.auth-header {
  padding: 24px 32px 0;
}

.auth-logo {
  display: inline-block;
  text-decoration: none;
}

.auth-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.auth-header-line {
  margin-top: 16px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(68,112,243,0.0) 70%);
  border-radius: 2px;
}

/* ── Main content ────────────────────────────────────────── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-form-wrap {
  width: 100%;
  max-width: 560px;
}

/* ── Form header ─────────────────────────────────────────── */
.auth-form-header {
  margin-bottom: 36px;
}

.auth-form-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.auth-form-header p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ── Form ────────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form .form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  text-transform: none;
  margin-bottom: 0;
  padding-top: 16px;
}

.auth-form .form-group input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 10px 0 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
}

.auth-form .form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

.auth-form .form-group input:focus {
  border-bottom-color: var(--color-accent);
  box-shadow: none;
}

.auth-form .form-group input.error {
  border-bottom-color: #e05b5b;
}

/* ── Error message ───────────────────────────────────────── */
.form-error {
  font-size: 0.85rem;
  color: #ff6b6b;
  min-height: 20px;
  font-weight: 500;
}

/* ── Submit button ───────────────────────────────────────── */
.auth-form .btn {
  margin-top: 24px;
  border-radius: 28px;
  text-transform: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.auth-form .btn:hover {
  background: #3560e0;
  border-color: #3560e0;
  box-shadow: 0 4px 24px rgba(68,112,243,0.4);
}

.btn-arrow {
  font-size: 1.3rem;
  line-height: 1;
  margin-left: 4px;
}

/* ── Loading state ───────────────────────────────────────── */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alt sign-in link ────────────────────────────────────── */
.auth-alt {
  text-align: center;
  margin-top: 20px;
}

.auth-alt-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
  font-size: 0.84rem;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.auth-alt-link:hover {
  color: var(--color-accent);
}

/* ── OTP code input ─────────────────────────────────────── */
#otp-code {
  letter-spacing: 0.25em;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-header { padding: 16px 20px 0; }
  .auth-logo-img { height: 44px; }
  .auth-main { padding: 32px 20px; }
  .auth-form-wrap { max-width: 100%; }
  .auth-form-header h2 { font-size: 1.4rem; }
}
