/* ==========================================================
   Sign-in pages (layouts/auth.blade.php): log in, register, forgot / reset password, verify email.
   Same design as the front page: landing.css is loaded too (lp- classes: brand, eyebrow, gradient text,
   hand-drawn scribbles, checks). This file only adds the layout (au-) and fits the form pages'
   Bootstrap markup (.form-control, .btn-grad, .btn-ghost …) to the front page's look.
   ========================================================== */

body.au-body { background: #fff; }
body.au-body::before, body.au-body::after { display: none; }

/* the hero's backdrop: light blue to white, a faint grid, soft colour */
.au { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%); }
.au::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(24, 119, 242, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 119, 242, .07) 1px, transparent 1px); background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 40% 30%, #000 30%, transparent 75%); }
.au-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.au-bg .b1 { width: 460px; height: 460px; right: -80px; top: -120px; background: #9cc8ff; }
.au-bg .b2 { width: 380px; height: 380px; right: 30%; bottom: -180px; background: #b9e6ff; }
.au-bg .b3 { width: 300px; height: 300px; left: -120px; top: 25%; background: #dcd0ff; opacity: .4; }
.au > * { position: relative; z-index: 1; }
.au > .au-bg { position: absolute; inset: 0; z-index: 0; }

/* top bar */
.au-top { display: flex; align-items: center; justify-content: space-between; padding-top: 1.4rem; padding-bottom: 1rem; }
.au-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.au-back:hover { color: var(--blue); }

.au-main { flex: 1; display: flex; align-items: center; padding-top: 2rem; padding-bottom: 3rem; }
.au-main > .row { width: 100%; margin-left: 0; margin-right: 0; }

/* left: the message */
.au-title { margin: 1.4rem 0 0; font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; color: var(--ink); }
.au-lead { margin: 1.3rem 0 0; max-width: 480px; font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); }
.au-cards { position: relative; height: 150px; margin-top: 2.2rem; }
.au-card-mini { position: absolute; display: flex; align-items: center; gap: .65rem; padding: .7rem .95rem .7rem .7rem; border-radius: 14px; background: rgba(255, 255, 255, .92);
    border: 1px solid #e4ebf5; box-shadow: 0 20px 40px -18px rgba(16, 60, 140, .4); font-size: .8rem; white-space: nowrap; animation: lpFloat 6s ease-in-out infinite; }
.au-card-mini b { display: block; font-size: .84rem; }
.au-card-mini small { color: var(--ink-2); font-size: .74rem; }
.au-card-mini .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.au-card-mini .ic.g { background: var(--green-soft); color: var(--green); }
.au-card-mini .ic.b { background: var(--blue-soft); color: var(--blue); }
.au-card-mini .ic.v { background: var(--violet-soft); color: var(--violet); }
.au-card-mini.c1 { left: 0; top: 0; }
.au-card-mini.c2 { left: 230px; top: 46px; animation-delay: -2s; }
.au-card-mini.c3 { left: 40px; top: 92px; animation-delay: -4s; }

/* the hand-drawn underline / arrow draw in on load (the front page waits for scrolling) */
.lp-draw .au .lp-scribble path { animation: lpDraw .9s cubic-bezier(.6, .1, .3, 1) .35s forwards; }
.lp-draw .au .au-note .lp-scribble path { animation-delay: 1s; }

/* ---------- the form card ---------- */
.au-card { position: relative; padding: 2.3rem 2.2rem 1.5rem; border-radius: 22px; background: #fff; border: 1px solid #dfe7f2;
    box-shadow: 0 50px 90px -40px rgba(16, 60, 140, .35), 0 18px 36px -24px rgba(16, 60, 140, .25); animation: lpFade .5s ease both; }
.au-note { left: -13.2rem; top: 1.6rem; transform: rotate(-6deg); font-size: 1.15rem; white-space: nowrap; }
.au-note .arrow { width: 54px; height: 44px; transform: scaleX(-1) rotate(-70deg); margin-top: .9rem; }
.au-card h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.au-card .text-muted { color: var(--ink-2) !important; }
.au-card .form-label, .au-card .form-check-label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.au-card .form-control { height: 48px; border-radius: 12px; background: #fff; border: 1px solid #dfe7f2; color: var(--ink); }
.au-card .form-control::placeholder { color: #9aa7b8; }
.au-card .form-control:focus { border-color: #9cc8ff; box-shadow: 0 0 0 4px rgba(24, 119, 242, .12); }
.au-card a:not(.btn) { color: var(--blue); font-weight: 600; }
/* the front page's buttons */
.au-card .btn-grad { height: 52px; border: 0; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; font-weight: 600; font-size: 1rem; color: #fff;
    background: var(--lp-grad); box-shadow: 0 8px 20px -8px rgba(24, 119, 242, .6), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .2s; }
.au-card .btn-grad:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(24, 119, 242, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.au-card .btn-grad:active { transform: none; }
.au-card .btn-ghost { height: 48px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: #fff; border: 1px solid #d6dfeb; color: var(--ink); transition: transform .15s, box-shadow .2s, border-color .2s, color .2s, background .2s; }
.au-card .btn-ghost:hover { color: var(--blue); background: #f7fbff; border-color: #a9c9f5; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(24, 119, 242, .45); }
.au-card .divider { color: var(--subtle); font-size: .82rem; }
.au-card .feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 1rem; background: var(--blue-soft); color: var(--blue); }
.au-card-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #edf1f7; text-align: center; font-size: .78rem; color: var(--ink-2); }
.au-card-foot i { color: var(--green); margin-right: .25rem; }

.au-foot { padding-bottom: 1.4rem; font-size: .8rem; color: var(--subtle); }

@media (max-width: 1199.98px) { .au-note { display: none !important; } }
@media (max-width: 991.98px) {
    .au-main { padding-top: .5rem; }
    .au-card { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .au-main > .row { --bs-gutter-x: 0; }   /* the card uses the full width inside the 16px page edge */
    .au-card { padding: 1.7rem 1.25rem 1.2rem; border-radius: 18px; }
    .au-card h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .au-card, .au-card-mini { animation: none; } }
