/* =============================================
   AUTH PAGES (auth/login.blade.php)
   Tokens + .lp-brand / .lp-btn come from theme.css.
============================================= */
*, *::before, *::after { box-sizing: border-box; }

.au-body { margin: 0; background: #fff; }

.au-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

/* ---------- Brand panel ---------- */
.au-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--lp-navy-deep);
}

.au-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.au-panel-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(74, 222, 128, .22), transparent 35%),
        linear-gradient(160deg, rgba(7, 26, 53, .95) 0%, rgba(13, 43, 85, .9) 55%, rgba(23, 71, 124, .82) 100%);
}

.au-panel-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 34px 34px;
}

.au-panel-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 56px;
}

.au-panel-copy { margin: auto 0; max-width: 480px; padding: 48px 0; }

.au-panel-copy h2 {
    font-family: var(--lp-font-display);
    font-weight: 600;
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.1;
    letter-spacing: -.015em;
    color: #fff;
    margin: 0 0 18px;
}

.au-panel-copy h2 em { font-style: italic; font-weight: 500; color: #86efac; }

.au-panel-copy p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .72);
    margin: 0 0 32px;
}

.au-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.au-perks li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.au-perks span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 17px;
    color: #86efac;
    background: rgba(134, 239, 172, .12);
    border: 1px solid rgba(134, 239, 172, .18);
}

.au-panel-foot { font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- Form side ---------- */
.au-main {
    display: flex;
    flex-direction: column;
    padding: 32px 40px;
    background:
        radial-gradient(circle at 100% 0%, rgba(22, 163, 74, .05), transparent 40%),
        #fff;
}

.au-topbar { display: flex; justify-content: flex-end; }

.au-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-body);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color .2s, color .2s;
}

.au-back:hover { background: var(--lp-bg-tint); color: var(--lp-navy); }

.au-card {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 40px 0;
}

.au-mobile-brand { display: none; margin-bottom: 32px; }

.au-card h1 {
    font-family: var(--lp-font-display);
    font-weight: 600;
    font-size: 36px;
    letter-spacing: -.015em;
    color: var(--lp-ink);
    margin: 0 0 8px;
}

.au-sub { font-size: 15px; color: var(--lp-muted); margin: 0 0 28px; }

/* Alerts */
.au-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.au-alert i { font-size: 16px; margin-top: 1px; }
.au-alert.is-error   { background: var(--lp-red-soft);    color: #991b1b; border: 1px solid #fecaca; }
.au-alert.is-success { background: var(--lp-accent-soft); color: var(--lp-accent-dark); border: 1px solid #bbf7d0; }

/* Fields */
.au-form { display: grid; gap: 18px; }

.au-field label,
.au-label-row label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lp-ink);
    margin-bottom: 8px;
}

.au-label-row { display: flex; justify-content: space-between; align-items: baseline; }

.au-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-navy-soft);
    text-decoration: none;
}

.au-link:hover { color: var(--lp-accent-dark); text-decoration: underline; }

.au-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 6px 0 16px;
    border: 1.5px solid var(--lp-line);
    border-radius: 14px;
    background: #fbfcfe;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.au-input > i { font-size: 17px; color: var(--lp-muted); transition: color .2s; }

.au-input:focus-within {
    border-color: var(--lp-navy-soft);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 71, 124, .1);
}

.au-input:focus-within > i { color: var(--lp-navy); }

.au-input.is-invalid { border-color: #fca5a5; background: #fffafa; }
.au-input.is-invalid:focus-within { box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }

.au-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--lp-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--lp-ink);
}

.au-input input::placeholder { color: #a3adbb; }

.au-reveal {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--lp-muted);
    font-size: 17px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.au-reveal:hover { background: var(--lp-bg-tint); color: var(--lp-navy); }

.au-error { display: block; font-size: 13px; font-weight: 600; color: var(--lp-red); margin-top: 6px; }

/* Checkbox */
.au-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-body);
    cursor: pointer;
    user-select: none;
    width: fit-content;
}

.au-check input { position: absolute; opacity: 0; pointer-events: none; }

.au-check-box {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    border: 1.5px solid #c5cedb;
    background: #fff;
    color: transparent;
    font-size: 15px;
    transition: background-color .15s, border-color .15s, color .15s;
}

.au-check input:checked + .au-check-box { background: var(--lp-navy); border-color: var(--lp-navy); color: #fff; }
.au-check input:focus-visible + .au-check-box { box-shadow: 0 0 0 4px rgba(23, 71, 124, .15); }

.au-submit { width: 100%; margin-top: 6px; border-radius: 14px; }

/* Divider + alternatives */
.au-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lp-muted);
}

.au-divider::before,
.au-divider::after { content: ''; flex: 1; height: 1px; background: var(--lp-line); }

.au-alt { display: grid; gap: 10px; }

.au-alt-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    text-decoration: none;
    color: var(--lp-ink);
    transition: border-color .2s, background-color .2s, transform .2s;
}

.au-alt-item:hover { border-color: var(--lp-navy-soft); background: var(--lp-bg-tint); color: var(--lp-ink); }
.au-alt-item:hover > .bi-chevron-right { transform: translateX(3px); color: var(--lp-navy); }

.au-alt-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.au-alt-item strong { font-size: 14.5px; font-weight: 700; }
.au-alt-item small { font-size: 13px; color: var(--lp-muted); }
.au-alt-item > .bi-chevron-right { color: var(--lp-muted); transition: transform .2s, color .2s; }

.au-alt-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 17px;
    color: var(--lp-navy);
    background: #eaf1fb;
}

.au-alt-icon.is-accent { color: var(--lp-accent-dark); background: var(--lp-accent-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .au-shell { grid-template-columns: 1fr; }
    .au-panel { display: none; }
    .au-mobile-brand { display: inline-flex; }
    .au-main { padding: 20px 20px 32px; }
    .au-topbar { justify-content: flex-start; }
    .au-back { padding-left: 0; }
    .au-card { padding-top: 24px; }
}

@media (max-width: 479.98px) {
    .au-card h1 { font-size: 30px; }
}
