/* ============================================
   VERLINGO — AUTH / ONBOARDING (login, reset, OTP, accept-invite)
   Dark split-screen design, matched to onboarding/index.php (signup)
   so the whole pre-login flow is consistent.
   ============================================ */
@font-face {
	font-family: 'UniversalSans';
	src: url('/app/assets/fonts/UniversalSans_Text_400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
}

:root {
	--bg-main: #050505;
	--bg-card: #0f1012;
	--primary: #00e5ff;
	--primary-dark: #00b8cc;
	--text-main: #ffffff;
	--text-muted: #a1a1aa;
	--border: #27272a;
	--error: #ef4444;
	--ok: #22c55e;
	--radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'UniversalSans', -apple-system, BlinkMacSystemFont, sans-serif; }

body { -webkit-font-smoothing: antialiased; background: var(--bg-main); color: var(--text-main); min-height: 100vh; display: flex; }

.split-container { display: flex; width: 100%; min-height: 100vh; }
.form-side { width: 50%; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.visual-side { width: 50%; background: radial-gradient(circle at center, #1e1e24 0%, var(--bg-main) 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; border-left: 1px solid var(--border); }
@media (max-width: 900px) {
	.visual-side { display: none; }
	.form-side { width: 100%; }
}

.auth-card { width: 100%; max-width: 400px; }
.logo-area { margin-bottom: 40px; }
.logo-area img { display: block; }

h1 { font-family: 'Lato', sans-serif; font-size: 28px; margin-bottom: 8px; line-height: 1.15; background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sub-text { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; line-height: 1.5; }

.form-group { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
input { width: 100%; background: var(--bg-card); border: 1px solid var(--border); padding: 14px 16px; border-radius: var(--radius); color: #fff; font-size: 15px; transition: 0.2s; }
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1); }
input:disabled { color: var(--text-muted); cursor: not-allowed; }

.btn-primary { width: 100%; background: var(--primary); color: #000; font-weight: 600; padding: 14px; border: none; border-radius: var(--radius); cursor: pointer; transition: 0.2s; margin-top: 8px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 15px; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; transform: none; }

.btn-google { width: 100%; background: #fff; color: #333; font-weight: 600; padding: 14px; border: none; border-radius: var(--radius); cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 15px; transition: 0.2s; }
.btn-google:hover { background: #f0f0f0; transform: translateY(-1px); }

.divider { display: flex; align-items: center; margin: 24px 0; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { padding: 0 16px; }

/* status / error messages */
.auth-alert { font-size: 13.5px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid; line-height: 1.45; }
.auth-alert.err { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.auth-alert.ok { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.error-message { color: var(--error); font-size: 13px; margin-top: 10px; display: none; }

.auth-links { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.auth-links a { color: var(--primary); text-decoration: none; }
.auth-links a.muted { color: var(--text-muted); }
.auth-links a:hover { text-decoration: underline; }
.signin-link { margin-top: 24px; text-align: center; font-size: 13px; color: var(--text-muted); }
.signin-link a { color: var(--primary); text-decoration: none; }
.signin-link a:hover { text-decoration: underline; }
.back-link { color: var(--text-muted); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; cursor: pointer; }
.back-link:hover { color: var(--text-main); }

.email-badge { background: rgba(0, 229, 255, 0.1); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--primary); display: inline-block; margin-bottom: 16px; }

/* visual side content */
.visual-content { text-align: center; max-width: 420px; padding: 40px; }
.visual-mark { width: 150px; margin: 0 auto 28px; opacity: .95; }
.visual-quote { font-family: 'Lato', sans-serif; font-size: 22px; line-height: 1.45; margin-bottom: 18px; color: #fff; }
.visual-quote .accent { color: var(--primary); }
.visual-author { color: var(--text-muted); font-size: 14px; }
.visual-stats { display: flex; gap: 26px; justify-content: center; margin-top: 34px; }
.visual-stat .v { font-size: 24px; font-weight: 700; color: #fff; font-family: 'Lato', sans-serif; }
.visual-stat .v.cy { color: var(--primary); }
.visual-stat .l { font-size: 12.5px; color: var(--text-muted); }

/* spinner */
.spinner { width: 18px; height: 18px; border: 2px solid #000; border-bottom-color: transparent; border-radius: 50%; display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* OTP inputs */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-input { width: 48px; height: 56px; font-size: 22px; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: #fff; font-weight: 600; transition: 0.2s; }
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15); outline: none; }
