/* ==========================================================================
   ShipFast — light auth pages (login, register, forgot/reset password, OTP)
   Used by resources/views/layouts/auth.blade.php. Loaded after shipfast-ui.css.
   ========================================================================== */
.au-body {
    --au-blue: #1d5fbf; --au-blue-2: #2f7be0; --au-navy: #0a2e6e; --au-sky: #5ec4f2;
    --au-tint: #f3f8ff; --au-line: #e3eaf5;
    min-height: 100vh; margin: 0; background: #ffffff !important; color: var(--sf-ink);
}
.au-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 48%) 1fr; }

/* ---------- Visual panel (light) ---------- */
.au-visual {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px;
    padding: 36px clamp(28px, 4vw, 56px) 34px;
    background: linear-gradient(165deg, #f6faff 0%, #eaf3fe 55%, #e2effd 100%);
    border-right: 1px solid var(--au-line);
}
.au-visual > * { position: relative; z-index: 1; }
.au-dots { position: absolute !important; inset: 0; z-index: 0 !important; opacity: .55;
    background-image: radial-gradient(rgba(29, 95, 191, .16) 1.2px, transparent 1.2px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.au-blob { position: absolute !important; z-index: 0 !important; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: auBlob 16s ease-in-out infinite; }
.au-blob-1 { width: 380px; height: 380px; right: -120px; top: -110px; background: rgba(94, 196, 242, .35); }
.au-blob-2 { width: 320px; height: 320px; left: -110px; bottom: -120px; background: rgba(47, 123, 224, .18); animation-delay: -8s; }
@keyframes auBlob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-24px, 18px) scale(1.08); } }

.au-logo { align-self: flex-start; display: inline-flex; background: #fff; padding: 10px 16px; border-radius: 16px;
    box-shadow: 0 10px 28px -12px rgba(10, 46, 110, .28); transition: transform .25s var(--sf-ease); }
.au-logo:hover { transform: translateY(-2px); }
.au-logo img { height: 42px; width: auto; display: block; }

.au-pitch { animation: auUp .7s var(--sf-ease) both; }
.au-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #fff;
    border: 1px solid var(--au-line); color: var(--au-blue); font-size: 12px; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px;
    box-shadow: 0 4px 12px -6px rgba(10, 46, 110, .2); }
.au-tag i { font-size: 15px; }
.au-pitch h2 { font-size: clamp(1.75rem, 2.5vw, 2.45rem); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; color: var(--au-navy); margin: 0 0 12px; }
.au-pitch h2 span { background: linear-gradient(90deg, var(--au-blue-2), var(--au-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-pitch p { color: #4a5a75; font-size: 15px; max-width: 460px; margin: 0; }

.au-art { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 200px; animation: auUp .8s .1s var(--sf-ease) both; }
.au-art svg { width: 100%; max-width: 500px; height: auto; max-height: 340px; overflow: visible; }

.au-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; animation: auUp .8s .2s var(--sf-ease) both; }
.au-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .85);
    border: 1px solid var(--au-line); font-size: 13px; font-weight: 600; color: var(--au-navy);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.au-chips i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #e7f1fd; color: var(--au-blue); font-size: 15px; }

/* illustration motion */
.au-float { animation: auFloat 5s ease-in-out infinite; transform-box: fill-box; }
.au-float-slow { animation: auFloat 7s ease-in-out infinite; animation-delay: -2s; }
.au-float-rev { animation: auFloat 6s ease-in-out infinite reverse; }
.au-drive { animation: auDrive 3.2s ease-in-out infinite; }
.au-twinkle { animation: auTwinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.au-twinkle:nth-of-type(2n) { animation-delay: -1.2s; }
@keyframes auFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes auDrive { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes auTwinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes auUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Form panel ---------- */
.au-main { display: flex; flex-direction: column; min-height: 100vh; padding: 24px clamp(20px, 4vw, 56px); background: #fff; }
.au-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.au-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--sf-muted) !important; text-decoration: none; padding: 7px 12px 7px 8px; border-radius: 10px; transition: background .2s, color .2s; }
.au-back:hover { background: var(--au-tint); color: var(--au-blue) !important; }
.au-back i { font-size: 17px; }
.au-topbar-link { font-size: 13.5px; color: var(--sf-muted); }
.au-topbar-link a { font-weight: 700; margin-left: 4px; }

.au-card { width: 100%; max-width: 440px; margin: auto; padding: 28px 0; animation: auUp .6s var(--sf-ease) both; }
.au-body.au-page-register .au-card { max-width: 480px; }

.au-head { margin-bottom: 26px; }
.au-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; color: var(--au-blue);
    background: linear-gradient(145deg, #eaf3fe, #d9eafd); border: 1px solid #d3e4fa; margin-bottom: 18px; }
.au-head h1 { font-size: clamp(1.55rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--sf-ink); margin: 0 0 8px; }
.au-head p { color: var(--sf-muted); margin: 0; font-size: 14.5px; }
.au-head p strong { color: var(--sf-ink); }

/* steps (register / forgot flow) */
.au-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 12px; font-weight: 600; color: var(--sf-faint); }
.au-steps .au-step { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.au-steps .au-step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #f1f4f9; color: var(--sf-muted); border: 1px solid var(--au-line); }
.au-steps .au-step.is-active { color: var(--au-blue); }
.au-steps .au-step.is-active b { background: var(--au-blue); border-color: var(--au-blue); color: #fff; box-shadow: 0 0 0 4px rgba(29, 95, 191, .14); }
.au-steps .au-step.is-done { color: #0f8a52; }
.au-steps .au-step.is-done b { background: #12b76a; border-color: #12b76a; color: #fff; }
.au-steps hr { flex: 1; min-width: 14px; margin: 0; border: 0; border-top: 2px dashed #dbe3ef; opacity: 1; }

/* fields (extends shipfast-ui .sf-field / .sf-input) */
.au-body .sf-field { margin-bottom: 18px; }
.au-body .sf-field > .form-label { font-size: 13px; font-weight: 600; color: var(--sf-ink-2); margin-bottom: 7px; text-transform: none; letter-spacing: 0; }
.au-body .sf-input > .form-control { min-height: 50px; border-radius: 12px; background: #f8fafd; border: 1.5px solid #e3e9f2; font-size: 14.5px; transition: border-color .2s, background .2s, box-shadow .2s; }
.au-body .sf-input > .form-control:hover { border-color: #cfd9e8; }
.au-body .sf-input > .form-control:focus { background: #fff; border-color: var(--au-blue-2); box-shadow: 0 0 0 4px rgba(47, 123, 224, .14); }
.au-body .sf-input > .form-control.is-invalid { border-color: var(--sf-danger); background-image: none; }
.au-body .sf-input > .form-control[readonly] { background: #f1f4f9; color: var(--sf-muted); }
.au-body .sf-input > i { left: 15px; font-size: 18px; }
.au-body .sf-input:focus-within > i { color: var(--au-blue-2); }
.au-field-error { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; color: var(--sf-danger); font-weight: 500; }
.au-caps { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: #b54708; font-weight: 600; }
.au-hint { margin-top: 6px; font-size: 12px; color: var(--sf-faint); }

.au-rules { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.au-rules li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sf-faint); transition: color .2s; }
.au-rules li::before { content: ""; width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; border: 1.5px solid #cfd8e5; transition: all .2s; }
.au-rules li.is-ok { color: #0f8a52; }
.au-rules li.is-ok::before { border-color: #12b76a; background: #12b76a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.au-match { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 600; min-height: 0; }
.au-match.is-ok { color: #0f8a52; } .au-match.is-bad { color: var(--sf-danger); }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 20px; font-size: 13.5px; }
.au-row a { font-weight: 600; }
.au-check { display: inline-flex; align-items: flex-start; gap: 9px; cursor: pointer; color: var(--sf-ink-2); font-size: 13.5px; user-select: none; }
.au-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; accent-color: var(--au-blue); cursor: pointer; }
.au-check a { font-weight: 600; }
.au-terms { margin: 2px 0 20px; }
.au-terms.is-invalid .au-check { color: var(--sf-danger); }

/* buttons */
.au-body .au-card .btn-lg { width: 100%; min-height: 52px; border-radius: 13px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.au-body .au-card .btn-lg i { font-size: 18px; transition: transform .2s; }
.au-body .au-card .btn-primary:hover i.ri-arrow-right-line { transform: translateX(3px); }
.au-link-btn { border: 0; background: none; padding: 0; font-weight: 700; color: var(--au-blue); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: inherit; }
.au-link-btn:hover:not(:disabled) { text-decoration: underline; }
.au-link-btn:disabled { color: var(--sf-faint); cursor: default; }

.au-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: var(--sf-faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: var(--au-line); }
.au-alt { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--sf-muted); }
.au-alt a { font-weight: 700; }
.au-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 12px; color: var(--sf-faint); }
.au-trust span { display: inline-flex; align-items: center; gap: 5px; }
.au-trust i { color: #12b76a; font-size: 14px; }

.au-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--au-tint); border: 1px solid #dde9fa; color: #33507e; font-size: 13px; margin-top: 18px; }
.au-note i { font-size: 17px; color: var(--au-blue); margin-top: 1px; }
.au-note-demo { background: #fffaeb; border-color: #fedf89; color: #7a4a04; margin-top: 0; }
.au-note-demo i { color: #dc6803; }

/* account chooser / existing accounts */
.au-accounts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.au-accounts > form, .au-acc { min-width: 0; }
.au-acc, .au-newacc { width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1.5px solid var(--au-line); border-radius: 16px; background: #fff; text-align: left; color: inherit !important; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.au-acc { cursor: pointer; }
.au-acc:hover, .au-acc:focus-visible { border-color: var(--au-blue-2); box-shadow: 0 8px 22px -14px rgba(10, 46, 110, .45); transform: translateY(-1px); outline: none; }
.au-acc.is-preferred { border-color: #b9d2f3; background: var(--au-tint); }
.au-newacc { border-style: dashed; background: #fbfcfe; }
.au-acc-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--au-blue-2), var(--au-blue)); }
.au-acc-avatar.is-new { background: #eaf3fe; color: var(--au-blue); font-size: 20px; }
.au-acc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.au-acc-main strong { font-size: 14.5px; color: var(--sf-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-acc-main small { font-size: 12.5px; color: var(--sf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-acc-main .au-acc-kind { font-size: 11.5px; color: var(--sf-faint); }
.au-acc .sf-status { flex: 0 0 auto; }
.au-acc-go { font-size: 22px; color: var(--sf-faint); }
.au-acc-cta { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--au-blue); white-space: nowrap; }
@media (max-width: 575.98px) {
    .au-acc { flex-wrap: wrap; }
    .au-acc .sf-status { order: 3; margin-left: 57px; }
    .au-acc-go, .au-acc-cta { margin-left: auto; }
}

/* 6-box OTP */
.au-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.au-otp input { width: 100%; aspect-ratio: 1 / 1.12; max-height: 64px; text-align: center; font-size: 24px; font-weight: 800; color: var(--au-navy);
    border: 1.5px solid #e3e9f2; border-radius: 14px; background: #f8fafd; outline: none; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s; font-variant-numeric: tabular-nums; padding: 0; }
.au-otp input:focus { border-color: var(--au-blue-2); background: #fff; box-shadow: 0 0 0 4px rgba(47, 123, 224, .14); transform: translateY(-1px); }
.au-otp input:not(:placeholder-shown) { background: #fff; border-color: #b9d2f3; }
.au-otp.is-invalid input { border-color: var(--sf-danger); animation: auShake .4s; }
.au-otp.is-full input { border-color: #12b76a; }
@keyframes auShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.au-resend { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 13.5px; color: var(--sf-muted); }
.au-resend form { display: inline; }

/* alerts inside the card */
.au-card .sf-flash .alert { border-radius: 12px; font-size: 13.5px; }

/* footer */
.au-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--sf-faint); padding-top: 12px; }
.au-foot i { color: #12b76a; }
.au-foot-links { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.au-foot-links a { color: var(--sf-muted); text-decoration: none; }
.au-foot-links a:hover { color: var(--au-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .au-shell { grid-template-columns: minmax(380px, 44%) 1fr; }
    .au-chips li:nth-child(3) { display: none; }
}
@media (max-width: 991.98px) {
    .au-shell { grid-template-columns: 1fr; }
    .au-visual { border-right: 0; border-bottom: 1px solid var(--au-line); padding: 18px 20px 0; gap: 0;
        display: grid; grid-template-columns: 1fr 190px; grid-template-areas: "logo art" "pitch art"; align-items: center; }
    .au-logo { grid-area: logo; justify-self: start; padding: 8px 12px; border-radius: 13px; }
    .au-logo img { height: 34px; }
    .au-pitch { grid-area: pitch; padding: 12px 0 18px; }
    .au-tag { display: none; }
    .au-pitch h2 { font-size: 1.35rem; margin-bottom: 6px; }
    .au-pitch h2 br { display: none; }
    .au-pitch p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .au-art { grid-area: art; min-height: 0; align-self: end; }
    .au-art svg { max-height: 150px; }
    .au-chips { display: none; }
    .au-main { min-height: 0; padding: 16px 20px 22px; }
    .au-card { margin: 0 auto; padding: 18px 0 26px; }
}
@media (max-width: 575.98px) {
    .au-visual { grid-template-columns: 1fr 118px; padding: 14px 16px 0; }
    .au-art svg { max-height: 104px; }
    .au-pitch { padding: 10px 0 14px; }
    .au-pitch h2 { font-size: 1.12rem; }
    .au-pitch p { display: none; }
    .au-main { padding: 12px 16px 18px; }
    .au-back span { display: none; }
    .au-head { margin-bottom: 20px; }
    .au-icon { width: 46px; height: 46px; font-size: 21px; border-radius: 14px; margin-bottom: 14px; }
    .au-rules { grid-template-columns: 1fr; }
    .au-otp { gap: 7px; }
    .au-otp input { font-size: 20px; border-radius: 12px; }
    .au-steps .au-step span { display: none; }
    .au-foot { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .au-body *, .au-body *::before, .au-body *::after { animation: none !important; transition: none !important; }
}
