/* ==========================================================================
   Shared split-hero design system — landing, login, register
   Loaded via @push('styles') in the three public blade views.
   ========================================================================== */

/* ---------- Root shell ---------- */
.lp-root {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
    background: #0a0e1a;
    overflow-x: clip;
}
/* Register adds extra fields — allow the page to scroll */
.lp-root-register { align-items: flex-start; overflow-y: auto; overflow-x: clip; }
.lp-root-register .lp-hero { margin: auto 0; }

.lp-grid-overlay {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none; z-index: 0;
}
.lp-orb { position: absolute; border-radius: 999px; filter: blur(80px); pointer-events: none; z-index: 0; }
.lp-orb-1 { width: 560px; height: 420px; background: rgba(91,141,224,0.12); top: -10%; left: -12%; }
.lp-orb-2 { width: 480px; height: 380px; background: rgba(91,141,224,0.09); bottom: -8%; right: -10%; }

/* ---------- Split hero ---------- */
.lp-hero {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    width: 100%; max-width: 1080px; min-height: 520px;
}

/* ---------- LEFT — Branding ---------- */
.lp-left {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 56px 48px 56px 0;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.lp-logo-ring {
    width: 96px; height: 96px; border-radius: 999px; padding: 6px;
    background: #fff; border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 8px 28px rgba(0,0,0,0.40), 0 0 0 6px rgba(91,141,224,0.10);
    display: grid; place-items: center; margin-bottom: 28px; flex-shrink: 0;
    transition: box-shadow 0.3s ease, transform 0.2s ease; text-decoration: none;
}
.lp-logo-ring:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.45), 0 0 0 10px rgba(91,141,224,0.14); transform: translateY(-1px); }
.lp-logo-ring:active { transform: translateY(0) scale(0.98); }
.lp-logo-ring img { width: 100%; height: 100%; object-fit: contain; border-radius: 999px; display: block; }
.lp-school {
    margin: 0 0 4px; font-size: 13px; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase; color: #5b8de0;
}
.lp-college {
    margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35;
    color: #e2e8f0; max-width: 340px;
}
.lp-divider { width: 40px; height: 2px; background: linear-gradient(90deg, #5b8de0, transparent); border-radius: 999px; margin: 22px 0; }
.lp-tagline { margin: 0; font-size: 14.5px; line-height: 1.65; color: #64748b; max-width: 320px; }

/* ---------- RIGHT — Form / actions ---------- */
.lp-right {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 56px 0 56px 64px;
}
.lp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.10em;
    text-transform: uppercase; color: #5b8de0; margin-bottom: 18px;
}
.lp-dot {
    width: 7px; height: 7px; border-radius: 999px; background: #5b8de0;
    box-shadow: 0 0 8px rgba(91,141,224,0.70);
    animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(1.25)} }
.lp-title {
    margin: 0 0 14px; font-size: clamp(32px,3.5vw,44px); font-weight: 800;
    line-height: 1.12; letter-spacing: -0.035em; color: #fff;
}
.lp-sub { margin: 0 0 28px; font-size: 14.5px; line-height: 1.6; color: #64748b; }

/* Alerts */
.lp-alert {
    display: flex; align-items: flex-start; gap: 10px;
    width: 100%; max-width: 380px; padding: 11px 16px; border-radius: 10px;
    font-size: 13px; font-weight: 500; margin-bottom: 12px;
}
.lp-alert i { margin-top: 2px; flex-shrink: 0; }
.lp-alert-error { background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.lp-alert-success { background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }

/* Form & Input Fields */
.lp-form {
    display: flex; flex-direction: column; gap: 18px;
    width: 100%; max-width: 380px; text-align: left;
}
.lp-field {
    display: flex; flex-direction: column; gap: 6px;
    width: 100%; text-align: left;
}
.field-label-row {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; text-align: left; margin-bottom: 2px;
}
.field-label {
    display: block; font-size: 13px; font-weight: 600;
    color: #f1f5f9; letter-spacing: -0.01em; text-align: left; margin: 0;
}
.field-hint {
    font-size: 12px; font-weight: 400; color: #64748b;
    text-align: right; text-decoration: none;
}
.field-hint:hover { color: #94a3b8; text-decoration: underline; }

.input-wrap {
    position: relative; display: flex; align-items: center; width: 100%; text-align: left;
}
.input-wrap .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #6b7a99; font-size: 14px; pointer-events: none;
}
.input-wrap .eye-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: #6b7a99; background: transparent; border: 0; cursor: pointer; padding: 4px;
    display: flex; align-items: center; justify-content: center;
}
.input-wrap .eye-btn:hover { color: #94a3b8; }

.ds-input {
    width: 100%; background: #0d1220;
    border: 1px solid rgba(255,255,255,0.10); border-radius: 8px;
    color: #e2e8f0; font-size: 14px; padding: 13px 14px 13px 40px;
    outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
    -webkit-appearance: none; appearance: none; box-sizing: border-box;
}
.ds-input::placeholder { color: #7a8aaa; opacity: 1; }
.ds-input:focus {
    background: #111827; border-color: #5b8de0;
    box-shadow: 0 0 0 3px rgba(91,141,224,0.15);
}
.ds-input.has-trailing { padding-right: 40px; }
.ds-input.no-leading { padding-left: 14px; }
select.ds-input {
    padding-right: 36px; cursor: pointer;
}

/* Checkbox & Links */
.ds-checkbox {
    appearance: none; -webkit-appearance: none;
    width: 17px; height: 17px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.20); background: rgba(255,255,255,0.05);
    display: inline-grid; place-content: center; cursor: pointer; flex-shrink: 0;
    transition: background 150ms, border-color 150ms;
}
.ds-checkbox:checked {
    background: #3b82f6; border-color: #3b82f6;
}
.ds-checkbox:checked::before {
    content: ""; width: 9px; height: 5px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}
.inline-link {
    color: #5b8de0; text-decoration: none; font-weight: 600;
}
.inline-link:hover { text-decoration: underline; }
.auth-footer {
    font-size: 13.5px; color: #64748b; text-align: center; margin-top: 6px;
}
.auth-footer a {
    color: #5b8de0; text-decoration: none; font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* Buttons & actions (landing) */
.lp-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 300px; margin-bottom: 24px; }
.lp-btn-login {
    width: 100% !important; display: inline-flex !important; align-items: center !important;
    justify-content: center !important; gap: 9px !important; padding: 13px 20px !important;
    border-radius: 10px !important; font-size: 14.5px !important; font-weight: 600 !important;
}
.lp-btn-register {
    width: 100%; display: inline-flex; align-items: center; justify-content: center;
    gap: 9px; padding: 13px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
    text-decoration: none; color: #cbd5e1; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    transition: background 200ms, border-color 200ms, transform 200ms;
}
.lp-btn-register:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); transform: translateY(-1px); }

/* Shared submit/remember */
.lp-submit {
    width: 100%; display: inline-flex !important; align-items: center !important;
    justify-content: center !important; gap: 9px !important; padding: 13px 20px !important;
    border-radius: 10px !important; font-size: 14.5px !important; font-weight: 600 !important;
    margin-top: 4px;
}
.lp-remember { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding-top: 2px; }
.lp-remember span { font-size: 13px; font-weight: 500; color: #cbd5e1; line-height: 1.4; }
.lp-remember .ds-checkbox { margin-top: 0; }

.lp-note { margin: 0; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(148,163,184,0.55); }

/* ==========================================================================
   RESPONSIVE & MOBILE UX
   ========================================================================== */

/* Tablet / narrow desktop: tighten paddings, keep two columns until it gets tight */
@media (max-width: 900px) {
    .lp-hero { max-width: 900px; }
    .lp-left { padding-right: 32px; }
    .lp-right { padding-left: 40px; }
}

/* Mobile: single-column stacked layout, centered, thumb-friendly */
@media (max-width: 768px) {
    .lp-root { padding: 24px 20px; align-items: flex-start; overflow-y: auto; }
    .lp-hero { grid-template-columns: 1fr; min-height: unset; gap: 28px; width: 100%; max-width: 480px; }

    .lp-left {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding: 8px 0 26px;
        align-items: center; text-align: center;
        align-self: stretch;
    }
    .lp-college, .lp-tagline { text-align: center; }
    .lp-tagline { max-width: 360px; }
    .lp-divider { margin: 20px auto; }

    .lp-right { padding: 0; align-items: center; text-align: center; width: 100%; }
    .lp-title { text-align: center; }
    .lp-form { max-width: 100%; text-align: left; }
    .lp-field { text-align: left; width: 100%; }
    .field-label { text-align: left !important; width: 100%; display: block; }
    .field-label-row { text-align: left !important; width: 100%; display: flex; align-items: center; justify-content: space-between; }
    .field-hint { text-align: right; }
    .lp-alert { max-width: 100%; text-align: left; }
    .lp-actions { max-width: 100%; }
    .lp-note { text-align: center; }
    .lp-remember { justify-content: flex-start; text-align: left; width: 100%; }
    .lp-remember span { text-align: left; }
    .auth-footer { text-align: center; width: 100%; }
}

/* Small phones: reduce type, tighten spacing, honor safe-area insets */
@media (max-width: 480px) {
    .lp-root {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .lp-logo-ring { width: 76px; height: 76px; margin-bottom: 20px; }
    .lp-school { font-size: 11.5px; }
    .lp-college { font-size: 15px; }
    .lp-title { font-size: clamp(26px, 7.5vw, 30px); }
    /* Minimum touch targets (>=44px) for accessibility */
    .lp-btn-login, .lp-btn-register, .lp-submit, .lp-form .ds-input { min-height: 46px; }
    .lp-btn-login, .lp-btn-register { font-size: 14px !important; }
    .lp-form { gap: 16px; }
    .lp-alert { font-size: 12.5px; padding: 10px 12px; }
    .lp-sub { margin-bottom: 22px; }
    .field-label { font-size: 12.5px; text-align: left !important; }
    .field-label-row { text-align: left !important; }
}

/* Landscape short-screens: let content scroll freely */
@media (max-height: 620px) and (orientation: landscape) {
    .lp-root { align-items: flex-start; overflow-y: auto; padding-top: 20px; padding-bottom: 20px; }
    .lp-logo-ring { width: 64px; height: 64px; margin-bottom: 16px; }
    .lp-left, .lp-right { padding-top: 24px; padding-bottom: 24px; }
}

/* ==========================================================================
   LIGHT MODE
   ========================================================================== */
html:not(.dark) .lp-root { background: #f1f5f9; }
html:not(.dark) .lp-grid-overlay { background-image: radial-gradient(circle, rgba(15,23,42,0.05) 1px, transparent 1px); }
html:not(.dark) .lp-orb-1 { background: rgba(91,141,224,0.08); }
html:not(.dark) .lp-orb-2 { background: rgba(91,141,224,0.06); }
html:not(.dark) .lp-left { border-right-color: rgba(15,23,42,0.08); }
html:not(.dark) .lp-hero > .lp-left { border-bottom-color: rgba(15,23,42,0.08); }
html:not(.dark) .lp-logo-ring { border-color: rgba(15,23,42,0.08); box-shadow: 0 8px 28px rgba(15,23,42,0.08), 0 0 0 6px rgba(91,141,224,0.08); }
html:not(.dark) .lp-college { color: #0f172a; }
html:not(.dark) .lp-tagline { color: #64748b; }
html:not(.dark) .lp-title { color: #0f172a; }
html:not(.dark) .lp-sub { color: #64748b; }
html:not(.dark) .field-label { color: #334155 !important; }
html:not(.dark) .field-hint { color: #64748b !important; }
html:not(.dark) .ds-input { background: #ffffff !important; border-color: rgba(15,23,42,0.12) !important; color: #0f172a !important; }
html:not(.dark) .ds-input::placeholder { color: #94a3b8 !important; }
html:not(.dark) .ds-checkbox { background: #ffffff; border-color: rgba(15,23,42,0.20); }
html:not(.dark) .lp-btn-register { background: #fff; border-color: rgba(15,23,42,0.12); color: #334155; box-shadow: 0 1px 3px rgba(15,23,42,0.06); }
html:not(.dark) .lp-btn-register:hover { background: #f8fafc; border-color: rgba(15,23,42,0.18); }
html:not(.dark) .lp-note { color: #94a3b8; }
html:not(.dark) .lp-remember span { color: #334155; }
html:not(.dark) .auth-footer { color: #64748b; }
html:not(.dark) .lp-alert-error { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.18); color: #dc2626; }
html:not(.dark) .lp-alert-success { background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.18); color: #16a34a; }

/* ==========================================================================
   ACCESSIBILITY — focus visibility & reduced motion
   ========================================================================== */
.lp-logo-ring:focus-visible,
.lp-btn-register:focus-visible,
.lp-btn-login:focus-visible,
.lp-submit:focus-visible {
    outline: 2px solid #5b8de0;
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .lp-dot { animation: none; }
    .lp-logo-ring, .lp-btn-register, .lp-btn-login, .lp-submit { transition: none; }
    html { scroll-behavior: auto; }
}

