/* ==========================================================================
   Sign-in and other guest pages (layouts/guest.blade.php + auth/*).
   Brand colours follow the Sunlit Network logo (sky blue on deep navy).
   Plain CSS so it works without a Vite rebuild; Tailwind utilities used by
   the other auth pages (forgot / reset password …) still come from @vite.
   ========================================================================== */

:root {
    --auth-navy: #071a33;
    --auth-navy-2: #0b2a4f;
    --auth-sky: #0ea5e9;
    --auth-sky-deep: #0369a1;
    --auth-sky-soft: #e0f2fe;
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-line: #dbe3ee;
    --auth-danger: #e11d48;
}

body.auth-body {
    margin: 0;
    background: #f5f8fc;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--auth-ink);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
}

/* ---- Brand panel (desktop) ------------------------------------------- */

.auth-brand {
    position: relative;
    display: none;
    overflow: hidden;
    color: #e2e8f0;
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(14, 165, 233, .18), transparent 60%),
        linear-gradient(160deg, var(--auth-navy-2) 0%, var(--auth-navy) 55%, #050f1f 100%);
}

@media (min-width: 1024px) {
    .auth-brand {
        display: flex;
        flex-direction: column;
        width: 54%;
        max-width: 860px;
        padding: 2.75rem 4rem 2.25rem;
    }
}

.auth-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-orbits { stroke-width: 1; opacity: .16; }
.auth-links { stroke-width: 1.2; opacity: .28; }
.auth-nodes { opacity: .7; }
.auth-pulses circle {
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: auth-pulse 3.2s ease-out infinite;
}
.auth-pulses circle:nth-child(2) { animation-delay: 1.1s; }
.auth-pulses circle:nth-child(3) { animation-delay: 2.2s; }

@keyframes auth-pulse {
    0%   { transform: scale(1); opacity: .8; }
    100% { transform: scale(4.5); opacity: 0; }
}

.auth-brand-top,
.auth-brand-body,
.auth-brand-foot { position: relative; z-index: 1; }

.auth-brand-logo {
    height: 58px;
    width: auto;
    display: block;
}

.auth-brand-body {
    margin: auto 0;
    padding: 3rem 0;
    max-width: 34rem;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .8rem;
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: 999px;
    background: rgba(14, 165, 233, .1);
    color: #7dd3fc;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .2);
}

.auth-brand-title {
    margin: 1.25rem 0 0;
    font-size: clamp(2.1rem, 3.2vw, 2.9rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
}

.auth-brand-text {
    margin: 1.1rem 0 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #9fb3c8;
}

.auth-points {
    list-style: none;
    margin: 2.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem .9rem;
    border: 1px solid rgba(148, 197, 255, .12);
    border-radius: .85rem;
    background: rgba(8, 25, 48, .55);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}

.auth-point-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: .65rem;
    background: rgba(14, 165, 233, .15);
    color: #7dd3fc;
}

.auth-point-icon svg { width: 1.15rem; height: 1.15rem; }

.auth-points strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #f1f5f9;
}

.auth-points small {
    display: block;
    margin-top: .1rem;
    font-size: .76rem;
    color: #8aa0b8;
}

.auth-brand-foot {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: #7f93ab;
}

.auth-brand-foot svg { width: 1rem; height: 1rem; color: #38bdf8; }

/* ---- Form side ------------------------------------------------------- */

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(14, 165, 233, .07), transparent 60%),
        #f5f8fc;
}

.auth-panel {
    width: 100%;
    max-width: 26rem;
    animation: auth-rise .45s ease-out both;
}

@keyframes auth-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.auth-mobile-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.auth-mobile-brand img { height: 50px; width: auto; }

@media (min-width: 1024px) {
    .auth-mobile-brand { display: none; }
}

.auth-card {
    position: relative;
    padding: 2.4rem 2.2rem 2.1rem;
    border: 1px solid #e6edf5;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 48px -24px rgba(7, 26, 51, .28);
}

@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.35rem 1.75rem; }
}

.auth-card-mark {
    display: block;
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 1.25rem;
    padding: .35rem;
    border-radius: .8rem;
    background: var(--auth-sky-soft);
    object-fit: contain;
}

.auth-heading { margin-bottom: 1.75rem; }

.auth-heading h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--auth-ink);
}

.auth-heading p {
    margin: .4rem 0 0;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--auth-muted);
}

.auth-form {
    display: grid;
    gap: 1.15rem;
}

.auth-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: .95rem;
    width: 1.1rem;
    height: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color .15s ease;
}

.auth-input {
    width: 100%;
    height: 2.95rem;
    padding: 0 2.9rem 0 2.75rem;
    border: 1.5px solid var(--auth-line);
    border-radius: .7rem;
    background: #fbfcfe;
    font: inherit;
    font-size: .95rem;
    color: var(--auth-ink);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.auth-input::placeholder { color: #a3b1c2; }
.auth-input:hover { border-color: #c3cfdd; }

.auth-input:focus {
    outline: none;
    border-color: var(--auth-sky);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .14);
}

.auth-input-wrap:focus-within .auth-input-icon { color: var(--auth-sky-deep); }

.auth-input-wrap.is-invalid .auth-input { border-color: var(--auth-danger); }
.auth-input-wrap.is-invalid .auth-input:focus { box-shadow: 0 0 0 4px rgba(225, 29, 72, .12); }
.auth-input-wrap.is-invalid .auth-input-icon { color: var(--auth-danger); }

.auth-toggle {
    position: absolute;
    right: .45rem;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.auth-toggle:hover { color: var(--auth-ink); background: #eef3f8; }
.auth-toggle:focus-visible { outline: 2px solid var(--auth-sky); outline-offset: 1px; }
.auth-toggle svg { width: 1.1rem; height: 1.1rem; }
.auth-toggle .icon-hide,
.auth-toggle.is-visible .icon-show { display: none; }
.auth-toggle.is-visible .icon-hide { display: block; }

.auth-error {
    margin: .45rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .82rem;
    color: var(--auth-danger);
}

.auth-hint {
    margin: .45rem 0 0;
    font-size: .8rem;
    font-weight: 600;
    color: #b45309;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .88rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--auth-sky-deep);
    cursor: pointer;
}

.auth-link {
    font-size: .88rem;
    font-weight: 600;
    color: var(--auth-sky-deep);
    text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

.auth-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    height: 3rem;
    margin-top: .3rem;
    border: 0;
    border-radius: .7rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: #fff;
    font: inherit;
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 10px 22px -10px rgba(3, 105, 161, .75);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px -10px rgba(3, 105, 161, .8);
}

.auth-submit:active { transform: none; }
.auth-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(14, 165, 233, .3); }

.auth-submit-arrow { width: 1.1rem; height: 1.1rem; transition: transform .15s ease; }
.auth-submit:hover .auth-submit-arrow { transform: translateX(3px); }

.auth-spinner {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
}

.auth-submit.is-loading { cursor: progress; filter: none; transform: none; }
.auth-submit.is-loading .auth-submit-arrow { display: none; }
.auth-submit.is-loading .auth-spinner { display: inline-block; }

@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: 1.5rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid #eef2f7;
    font-size: .78rem;
    line-height: 1.5;
    color: #7a8aa0;
}

.auth-note svg { flex: none; width: 1rem; height: 1rem; margin-top: .1rem; color: #16a34a; }

.auth-footer {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: .75rem;
    line-height: 1.7;
    color: #8a99ad;
}

.auth-footer strong { color: #475569; font-weight: 600; }

/* Status message (e.g. "password reset link sent") */
.auth-card .mb-6 { margin-bottom: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
    .auth-panel, .auth-pulses circle, .auth-spinner { animation: none; }
}
