/* ============================================================
   AUTH PAGES — STRIPE-STYLE OVERLAY
   Loaded AFTER auth.css to override its palette.
   ============================================================ */

/* ---- Palette overrides (Stripe navy + purple-blue) ---- */
:root {
	--primary:      #635BFF;   /* Stripe purple-blue */
	--primary-dark: #4F46E5;
	--accent:       #00D4FF;   /* Stripe cyan */
	--ink:          #0A2540;
	--ink-soft:     #425466;
	--muted:        #8898AA;
	--line:         #E3E8EE;
	--soft:         #F6F9FC;
	--green:        #10B981;
	--red:          #EF4444;
}

body {
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 91, 255, 0.07), transparent 70%),
		radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 212, 255, 0.05), transparent 60%),
		linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 70%);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	letter-spacing: -0.005em;
}

/* ---- Topbar ---- */
.auth-topbar {
	background: rgba(255, 255, 255, 0.85);
	border-bottom: 1px solid #F0F2F6;
	box-shadow: none;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.auth-logo {
	font-weight: 700;
	letter-spacing: -0.012em;
	color: var(--ink);
}
.auth-logo-mark {
	background: linear-gradient(135deg, #00D4FF 0%, #635BFF 50%, #7A73FF 100%);
	box-shadow: 0 6px 18px rgba(99, 91, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	border-radius: 10px;
}
.auth-topbar-r a {
	color: var(--ink-soft);
	font-weight: 600;
}
.auth-topbar-r a:hover { color: var(--primary); }

/* ---- Auth card ---- */
.auth-card {
	border: 1px solid #EFF2F6;
	border-radius: 20px;
	box-shadow:
		0 24px 48px rgba(50, 71, 92, 0.10),
		0 4px 12px rgba(50, 71, 92, 0.04),
		0 0 0 1px rgba(99, 91, 255, 0.02);
}
.auth-head h1 {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.028em;
	color: var(--ink);
}
.auth-head p {
	font-size: 15px;
	color: var(--ink-soft);
	letter-spacing: -0.003em;
}

/* ---- Section titles ---- */
.auth-section-title {
	color: var(--primary);
	letter-spacing: 0.06em;
	font-size: 11px;
	font-weight: 700;
	border-bottom-color: #EFF2F6;
}

/* ---- Inputs ---- */
.auth-field label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-soft);
	letter-spacing: 0;
	display: block;
}
.auth-field label .req,
.auth-field label > span[style*="color:red"],
.auth-field label > span[style*="red"] {
	color: var(--red) !important;
	font-weight: 700;
	margin-left: 2px;
	display: inline !important;
}
.auth-field input[type=text],
.auth-field input[type=email],
.auth-field input[type=password],
.auth-field input[type=tel],
.auth-field select {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14.5px;
	background: white;
	box-shadow: 0 1px 2px rgba(50, 71, 92, 0.04);
	transition: all 150ms ease;
}
.auth-field input:hover:not(:focus),
.auth-field select:hover:not(:focus) {
	border-color: #7A73FF;
}
.auth-field input:focus,
.auth-field select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.12);
}

/* ---- Checkbox ---- */
.auth-check input[type=checkbox] { accent-color: var(--primary); }
.auth-check a { color: var(--primary); font-weight: 600; }

/* ---- Primary button — Stripe gradient ---- */
.auth-btn-primary {
	background: linear-gradient(135deg, #635BFF 0%, #7A73FF 100%) !important;
	color: white !important;
	border: none;
	border-radius: 12px;
	font-weight: 600;
	letter-spacing: -0.005em;
	font-size: 15px;
	padding: 13px 22px;
	box-shadow: 0 6px 18px rgba(99, 91, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transition: all 180ms ease;
}
.auth-btn-primary:hover {
	box-shadow: 0 10px 28px rgba(99, 91, 255, 0.40);
	transform: translateY(-1px);
}
.auth-btn-primary:active { transform: translateY(0); }

/* Ghost / secondary buttons */
.auth-btn-ghost,
.auth-btn-secondary {
	background: white !important;
	color: var(--ink) !important;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(50, 71, 92, 0.05);
}
.auth-btn-ghost:hover,
.auth-btn-secondary:hover {
	border-color: var(--primary);
	color: var(--primary) !important;
	background: #FAFBFF !important;
}

/* ---- Divider / footer link ---- */
.auth-divider {
	color: var(--muted);
	font-size: 13.5px;
}
.auth-divider a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-divider a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---- Error block ---- */
.auth-error {
	background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
	border: 1px solid #FECACA;
	border-radius: 12px;
	color: #991B1B;
	padding: 12px 16px;
	font-size: 13.5px;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.08);
}
.auth-error i { color: #DC2626; }

/* ---- Plan cards (register page) ---- */
.auth-plan {
	border-radius: 14px;
	border: 1.5px solid var(--line);
	box-shadow: 0 1px 2px rgba(50, 71, 92, 0.04);
	transition: all 180ms ease;
}
.auth-plan:hover {
	border-color: var(--primary);
	box-shadow: 0 8px 20px rgba(99, 91, 255, 0.10);
	transform: translateY(-2px);
}
.auth-plan.selected,
.auth-plan input[type=radio]:checked + .auth-plan-body {
	border-color: var(--primary);
	background: linear-gradient(135deg, #FAFBFF 0%, #F0EBFF 100%);
	box-shadow: 0 8px 24px rgba(99, 91, 255, 0.15);
}

/* ---- Welcome / verify pages share auth-card so styles apply ---- */
.auth-success {
	background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
	border: 1px solid #A7F3D0;
	border-radius: 12px;
	color: #065F46;
}
