/* auth.css — split-screen layout shared by Signup.blade.php and Signin.blade.php
   Uses the variables from home.css (--blue, --ink, --line, --bg, --navy ...) */

/* ---------- Split layout ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 94px); padding: 0; }

.auth-side {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(145deg, #071038 0%, #0b1c59 62%, #0b235f 100%);
    display: flex; align-items: center; padding: 64px 56px;
}
.auth-side:before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 75% 20%, rgba(53, 200, 255, .16), transparent 30%),
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
}
.auth-side-inner { position: relative; width: 100%; max-width: 470px; margin: 0 auto; }
.auth-side h2 {
    font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.04em; color: #fff;
}
.auth-side h2 .accent {
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-side p { color: #cbd5f0; font-size: 16px; margin-top: 18px; max-width: 420px; }

.auth-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 38px; }
.auth-stat {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px; padding: 16px 18px;
}
.auth-stat b {
    display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px;
    font-weight: 800; color: var(--teal); letter-spacing: -.02em;
}
.auth-stat span { font-size: 12.5px; color: #aebde2; }

.auth-main { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-wrap { width: 100%; max-width: 500px; }

.auth-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 40px 36px 0; overflow: hidden;
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h1 { font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.auth-head p { font-size: 13.5px; color: var(--muted); }

/* Footer band inside the card ("Already have an account?") */
.auth-foot {
    margin: 28px -36px 0; padding: 18px; text-align: center; font-size: 13px;
    color: var(--muted); background: var(--bg); border-top: 1px solid var(--line);
}
.auth-foot a { color: var(--blue); font-weight: 700; }

/* ---------- Google button + divider ---------- */
.btn-google {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 13px;
    font-size: 14px; font-weight: 600; color: var(--ink); transition: background .15s ease;
}
.btn-google:hover { background: var(--bg); }
.btn-google i { color: #4285f4; font-size: 16px; }
.auth-or {
    display: flex; align-items: center; gap: 14px; color: var(--muted);
    font-size: 12.5px; margin: 20px 0;
}
.auth-or:before, .auth-or:after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Fields ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { margin-bottom: 16px; text-align: left; }
.field-group label {
    display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.field-group .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 12px; color: var(--blue); }

.auth-card .sub-field {
    width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
    padding: 13px 14px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink);
    margin-bottom: 0; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card .sub-field::placeholder { color: #9aa3b8; }
.auth-card .sub-field:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.auth-card .sub-field:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: var(--ink);
}
.auth-card .sub-field.invalid { border-color: #e0453e; }

.pw-wrap { position: relative; }
.pw-wrap .sub-field { padding-right: 44px; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: none; background: none; color: var(--muted);
    cursor: pointer; border-radius: 8px; font-size: 16px;
}
.pw-toggle:hover { color: var(--ink); background: #eef0f6; }


/* ---------- Region card (auto-detected, single option) ---------- */
.region-card {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px;
    border: 1.5px solid var(--blue); background: rgba(47, 107, 255, .05); border-radius: 14px;
}
.region-flag {
    width: 46px; height: 31px; border-radius: 6px; overflow: hidden; flex: none; line-height: 0;
    box-shadow: 0 0 0 1px rgba(9, 19, 61, .14), 0 4px 10px rgba(9, 19, 61, .14);
}
.region-flag svg { width: 100%; height: 100%; display: block; }
.region-text b {
    display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--ink);
}
.region-text span { font-size: 12px; color: var(--muted); }
.region-badge {
    margin-left: auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    font-size: 11.5px; font-weight: 700; color: #14795a; background: #e8fbf4;
    padding: 5px 10px; border-radius: 999px;
}

.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.check-row input { accent-color: var(--blue); width: 16px; height: 16px; }

.auth-submit { width: 100%; margin-top: 6px; padding: 15px 18px; }
.auth-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.form-msg { font-size: 12.5px; margin-bottom: 14px; text-align: center; display: none; }
.form-msg.error, .form-msg.success { display: block; padding: 10px 12px; border-radius: 10px; }
.form-msg.error { color: #c0322b; background: #fdeeee; }
.form-msg.success { color: #14795a; background: #e8fbf4; }

/* ---------- OTP step ---------- */
.otp-step { display: none; text-align: center; padding-bottom: 36px; }
.otp-icon {
    width: 48px; height: 48px; border-radius: 14px; background: rgba(47, 107, 255, .1);
    color: var(--blue); display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin: 0 auto 14px;
}
.otp-sent-to { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.otp-sent-to strong { color: var(--ink); }
.otp-inputs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.otp-inputs input {
    width: 46px; height: 54px; text-align: center; font-size: 20px; font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif; background: #fff;
    border: 1.5px solid var(--line); border-radius: 12px; color: var(--navy);
}
.otp-inputs input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.otp-resend { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.otp-resend button {
    background: none; border: none; color: var(--blue); font-weight: 700;
    cursor: pointer; font-size: 12.5px; padding: 0;
}
.otp-resend button:disabled { color: var(--muted); cursor: not-allowed; }
.otp-back { display: block; margin-top: 18px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.otp-back:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .auth-split { grid-template-columns: 1fr; min-height: 0; }
    .auth-side { padding: 44px 24px; }
    .auth-side h2 { font-size: 34px; }
    .auth-stats { display: none; }
    .auth-main { padding: 32px 16px 56px; }
}
@media (max-width: 640px) {
    .auth-card { padding: 28px 20px 0; }
    .auth-foot { margin: 24px -20px 0; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .otp-inputs { gap: 6px; }
    .otp-inputs input { width: 42px; height: 50px; }
}