/* =====================================================================
   Winning Wavez — Login / Sign up (member) in the navy look of the panel.
   Used by resources/views/login.blade.php and register.blade.php.
   Desktop: brand panel on the left, form on the right. Phone: one column.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --a-bg: #06133a;
    --a-surface: rgba(13, 33, 96, .72);
    --a-field: rgba(6, 19, 58, .65);
    --a-border: rgba(147, 197, 253, .2);
    --a-text: #eef2ff;
    --a-muted: #9fb0dc;
    --a-accent: #22b8f0;
    --a-blue: #2f5fd0;
    --a-danger: #f87171;
    --a-ok: #4ade80;
}
html, body { margin: 0; min-height: 100%; }
body.ww-auth {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--a-text);
    background:
        radial-gradient(60% 45% at 15% 10%, rgba(37, 99, 235, .38) 0%, transparent 70%),
        radial-gradient(50% 40% at 90% 90%, rgba(34, 184, 240, .22) 0%, transparent 70%),
        linear-gradient(180deg, #0b2463 0%, #081a4d 45%, #06133a 100%);
    background-color: var(--a-bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--a-accent); text-decoration: none; }
a:hover { color: #7dd3fc; }

.au-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.au-card {
    width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr;
    border-radius: 28px; overflow: hidden;
    background: var(--a-surface); border: 1px solid var(--a-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.au-card.au-wide { max-width: 1080px; grid-template-columns: 5fr 7fr; }

/* ---------- Brand panel ---------- */
.au-brand {
    position: relative; overflow: hidden; padding: 44px 40px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(34, 184, 240, .35) 0%, transparent 60%),
        linear-gradient(160deg, #1b3a8f 0%, #10287a 55%, #0b1f5e 100%);
}
.au-brand::after {          /* soft wave in the corner */
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .05); pointer-events: none;
}
.au-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; }
.au-logo img { width: 58px; height: 58px; object-fit: contain; background: #fff; border-radius: 16px; padding: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.au-logo b { font-size: 22px; font-weight: 800; letter-spacing: .2px; }
.au-brand h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.3px; }
.au-brand h1 span { background: linear-gradient(90deg, #7dd3fc, #22b8f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-brand p { margin: 0; color: #c7d2fe; font-size: 14.5px; line-height: 1.6; }
.au-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.au-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #e0e7ff; }
.au-points i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.au-brand small { color: #93a5d8; font-size: 12px; position: relative; z-index: 1; }

/* Logo glaze: a soft light sweeping across the logo (same as the member panel, ww-navy.css) */
.ww-glaze { position: relative; display: inline-block; flex: none; line-height: 0; vertical-align: middle; }
.ww-glaze::after {
    content: ""; position: absolute; inset: 0; border-radius: var(--glaze-r, 0); pointer-events: none;
    background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, .55) 49%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, .55) 51%, transparent 56%) no-repeat;
    background-size: 250% 100%; background-position: 160% 0;
    animation: ww-glaze 6s ease-in-out infinite;
}
.ww-glaze.is-shape::after { -webkit-mask: var(--glaze-src) center / contain no-repeat; mask: var(--glaze-src) center / contain no-repeat; }
@keyframes ww-glaze { 0% { background-position: 160% 0; } 15%, 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .ww-glaze::after { animation: none; display: none; } }

/* ---------- Form side ---------- */
.au-form { padding: 44px 44px 36px; }
.au-mobile-logo { display: none; }
.au-form h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.2px; }
.au-form .au-sub { margin: 6px 0 24px; color: var(--a-muted); font-size: 14px; }

.au-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.au-grid .au-full { grid-column: 1 / -1; }
.au-field { margin-bottom: 16px; }
.au-field label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 600; color: #c7d2fe; }
.au-input { position: relative; }
.au-input > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--a-muted); font-size: 14px; pointer-events: none; transition: color .15s; }
.au-input input, .au-input select {
    width: 100%; height: 50px; padding: 0 14px 0 44px;
    font: inherit; font-size: 15px; color: var(--a-text);
    background: var(--a-field); border: 1px solid var(--a-border); border-radius: 14px;
    outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
    color-scheme: dark;
}
.au-input select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.au-input select option { background: #0d2160; color: var(--a-text); }
.au-input .au-caret { left: auto; right: 15px; }
.au-input input::placeholder { color: #7083b8; }
.au-input input:focus, .au-input select:focus { border-color: var(--a-accent); box-shadow: 0 0 0 4px rgba(34, 184, 240, .18); background: rgba(6, 19, 58, .85); }
.au-input:focus-within > i:first-child { color: var(--a-accent); }
.au-input input[readonly] { color: #c7d2fe; background: rgba(255, 255, 255, .04); cursor: not-allowed; }
.au-input input:-webkit-autofill { -webkit-text-fill-color: var(--a-text); -webkit-box-shadow: 0 0 0 1000px #0a1d55 inset; caret-color: var(--a-text); }
.au-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
    color: var(--a-muted); cursor: pointer; font-size: 15px;
}
.au-eye:hover, .au-eye:focus-visible { color: #fff; background: rgba(255, 255, 255, .06); outline: none; }
.au-input.has-eye input { padding-right: 52px; }
.au-hint { margin-top: 6px; font-size: 12px; color: var(--a-muted); }
.errorMsg { color: var(--a-danger); font-size: 12.5px; }
.errorMsg:empty { display: none; }

.au-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 6px; font-size: 13.5px; color: #c7d2fe; cursor: pointer; }
.au-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--a-accent); cursor: pointer; }

.au-btn {
    width: 100%; height: 52px; margin-top: 10px; border: 0; border-radius: 14px; cursor: pointer;
    font: inherit; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .2px;
    background: linear-gradient(90deg, #2f5fd0 0%, #22b8f0 100%);
    box-shadow: 0 12px 28px rgba(34, 184, 240, .28);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform .12s, box-shadow .15s, opacity .15s;
}
.au-btn:hover { box-shadow: 0 14px 34px rgba(34, 184, 240, .4); }
.au-btn:active { transform: scale(.985); }
.au-btn:focus-visible { outline: 3px solid rgba(34, 184, 240, .45); outline-offset: 2px; }
.au-btn[disabled] { opacity: .7; cursor: progress; }

.au-switch { margin: 22px 0 0; text-align: center; color: var(--a-muted); font-size: 14px; }
.au-switch a { font-weight: 700; }

/* ---------- Alerts (same markup the scripts already write) ---------- */
.alert {
    position: relative; display: flex; align-items: flex-start; gap: 10px;
    margin: 0 0 18px; padding: 12px 44px 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45;
    border: 1px solid rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .12); color: #fecaca;
}
.alert::before { content: "\f06a"; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--a-danger); }
.alert-success { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .12); color: #bbf7d0; }
.alert-success::before { content: "\f058"; color: var(--a-ok); }
.alert.d-none { display: none; }
.alert .btn-close {
    position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px;
    background: transparent; color: inherit; opacity: .75; cursor: pointer;
}
.alert .btn-close::before { content: "\f00d"; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 13px; }
.alert .btn-close:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
#emailVer { color: #7dd3fc; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 860px) {
    .au-wrap { padding: 20px 14px 28px; place-items: start center; }
    .au-card, .au-card.au-wide { grid-template-columns: 1fr; max-width: 480px; border-radius: 24px; }
    .au-brand { display: none; }
    .au-form { padding: 28px 22px 26px; }
    .au-mobile-logo { display: flex; flex-direction: column; align-items: center; margin: 4px 0 20px; text-align: center; }
    .au-mobile-logo { gap: 10px; }
    .au-mobile-logo img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
    .au-mobile-logo b { font-size: 20px; font-weight: 800; letter-spacing: .2px; color: var(--a-text); }
    .au-form h2, .au-form .au-sub { text-align: center; }
}
@media (max-width: 480px) {
    .au-grid { grid-template-columns: 1fr; }
    .au-form h2 { font-size: 23px; }
}

/* =====================================================================
   Login page: one centred card (logo tile, title, two fields, button).
   Scoped to body.au-solo-page, so the sign-up page is unchanged.
   ===================================================================== */
body.au-solo-page {
    background:
        radial-gradient(55% 40% at 50% 0%, rgba(37, 99, 235, .35) 0%, transparent 70%),
        linear-gradient(rgba(147, 197, 253, .05) 1px, transparent 1px) 0 0 / 34px 34px,
        linear-gradient(90deg, rgba(147, 197, 253, .05) 1px, transparent 1px) 0 0 / 34px 34px,
        linear-gradient(180deg, #0b2463 0%, #081a4d 50%, #06133a 100%);
    background-color: #06133a;
    background-attachment: fixed;
}
.au-solo {
    width: 100%; max-width: 420px; padding: 30px 26px 26px; border-radius: 22px; text-align: center;
    background: linear-gradient(160deg, rgba(23, 52, 140, .55) 0%, rgba(9, 25, 72, .70) 100%);
    border: 1px solid rgba(147, 197, 253, .18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.au-solo-logo { display: inline-block; margin-bottom: 18px; }
.au-solo-logo img {
    display: block; width: 52px; height: 52px; object-fit: contain;
    background: #fff; border-radius: 14px; padding: 5px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .30);
}
.au-solo h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.2px; color: #fff; }
.au-solo .au-sub { margin: 8px 0 24px; color: var(--a-muted); font-size: 14px; }
.au-solo form { text-align: left; }
.au-solo .au-field { margin-bottom: 16px; }
.au-solo .au-field label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; color: #e2e8ff; }
.au-solo-input {
    width: 100%; height: 46px; padding: 0 14px; font: inherit; font-size: 14.5px; color: var(--a-text);
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(147, 197, 253, .16); border-radius: 12px;
    outline: none; transition: border-color .15s, box-shadow .15s, background .15s; color-scheme: dark;
}
.au-solo-input::placeholder { color: #7083b8; }
.au-solo-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .20); background: rgba(255, 255, 255, .06); }
.au-solo-input:-webkit-autofill { -webkit-text-fill-color: var(--a-text); -webkit-box-shadow: 0 0 0 1000px #0c2160 inset; caret-color: var(--a-text); }
.au-solo-pass { position: relative; }
.au-solo-pass .au-solo-input { padding-right: 64px; }
.au-solo .au-show {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: auto; height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
    background: transparent; color: #c7d2fe; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.au-solo .au-show:hover, .au-solo .au-show:focus-visible { color: #fff; background: rgba(255, 255, 255, .06); outline: none; }
.au-solo .au-btn {
    width: 100%; height: 48px; margin-top: 8px; border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .40), inset 0 1px 0 rgba(255, 255, 255, .20);
    font-size: 15.5px; font-weight: 600;
}
.au-solo .au-switch { margin: 22px 0 0; color: var(--a-muted); font-size: 14px; text-align: center; }
.au-solo .au-switch a { color: #38bdf8; font-weight: 600; }
.au-solo .errDiv .alert { text-align: left; }
@media (max-width: 575.98px) {
    body.au-solo-page .au-wrap { place-items: center; }
    .au-solo { padding: 26px 18px 22px; border-radius: 20px; }
    .au-solo h2 { font-size: 21px; }
}
