/* Pinebridge · account pages (sign in, register, password, email) and the error pages.
   Loaded after site.css by components/layouts/auth.blade.php and errors/layout.blade.php.
   Neither layout carries the public header or footer. */

/* The faint squares of the home page's opening, shared by both navy surfaces. */
.auth__side::before, .err::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='360' viewBox='0 0 480 360'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='60' width='60' height='60' opacity='.035'/%3E%3Crect x='120' y='0' width='60' height='60' opacity='.025'/%3E%3Crect x='180' y='120' width='60' height='60' opacity='.04'/%3E%3Crect x='300' y='60' width='60' height='60' opacity='.03'/%3E%3Crect x='60' y='240' width='60' height='60' opacity='.03'/%3E%3Crect x='360' y='180' width='60' height='60' opacity='.04'/%3E%3Crect x='420' y='300' width='60' height='60' opacity='.025'/%3E%3Crect x='240' y='300' width='60' height='60' opacity='.03'/%3E%3C/g%3E%3C/svg%3E"); }

/* Things rise into place as the page opens. No script is needed for it, so a
   form is never left hidden if the script does not arrive. */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ================================================================================
   Account pages: a navy panel beside the form.
   ================================================================================ */
.auth { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); min-height: 100vh; min-height: 100dvh; }

/* The navy panel ------------------------------------------------------------------ */
.auth__side { position: sticky; top: 0; z-index: 0; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: clamp(18px, 3.2vh, 34px); height: 100vh; height: 100dvh; padding: clamp(24px, 4.4vh, 44px) clamp(28px, 4vw, 60px) clamp(22px, 4vh, 40px); color: #fff; background: linear-gradient(180deg, var(--navy-950) 0%, #082541 52%, #0E3D6A 100%); }
.auth__side::after { content: ""; position: absolute; right: -30%; bottom: -34%; z-index: -1; width: 96%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 198, 63, .22), transparent); pointer-events: none; }
.auth__logo { flex: none; align-self: flex-start; display: flex; align-items: center; min-height: 46px; border-radius: 8px; }
.auth__logo img { height: 46px; width: auto; }
.auth__pitch { flex: none; }
.auth__pitch > * { animation: rise .7s var(--ease) both; }
.auth__pitch > :nth-child(2) { animation-delay: .07s; }
.auth__pitch > :nth-child(3) { animation-delay: .14s; }
.auth__pitch > :nth-child(4) { animation-delay: .21s; }
.auth__line { margin: 18px 0 12px; max-width: 13em; color: #fff; font-size: clamp(30px, 3.1vw, 44px); font-weight: 600; line-height: 1.16; letter-spacing: -.015em; text-wrap: balance; }
.auth__line em { font-style: normal; color: var(--green); }
.auth__lede { max-width: 440px; margin: 0; color: rgba(255, 255, 255, .8); font-size: 16px; }
.auth__gives { display: grid; gap: 12px; margin-top: clamp(16px, 2.6vh, 26px); }
.auth__gives li { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.35; }
.auth__gives .orb { transition: transform .35s var(--ease); }
.auth__gives li:hover .orb { transform: rotate(-8deg) scale(1.1); }

/* The photograph takes whatever height the panel has left. */
.auth__visual { position: relative; flex: 1 1 0; min-height: 150px; animation: rise .8s var(--ease) .28s both; }
.auth__photo { position: absolute; inset: 0; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-800); box-shadow: 0 40px 80px -30px rgba(2, 12, 24, .7); }
.auth__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.auth__visual:hover .auth__photo img { transform: scale(1.05); }
.auth__photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 11px 16px; border-radius: 12px; background: rgba(4, 20, 36, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13.5px; line-height: 1.45; }
.auth__badge { position: absolute; right: 18px; top: -24px; z-index: 2; margin: 0; padding: 14px 20px 15px; border-radius: var(--r); background: var(--green); color: var(--navy-900); text-align: center; box-shadow: 0 24px 50px -12px rgba(4, 20, 36, .55); animation: bob 6s ease-in-out infinite; }
.auth__badge b { display: block; font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.auth__badge span { font-size: 12.5px; font-weight: 500; }
.auth__badge--left { right: auto; left: 16px; top: 16px; }
@keyframes bob { 50% { translate: 0 8px; } }
.auth__marks { flex: none; display: flex; flex-wrap: wrap; gap: 12px; }
.auth__marks span { display: grid; place-items: center; height: 50px; padding: 8px 14px; border-radius: 12px; background: #fff; }
.auth__marks img { height: 32px; width: auto; }

/* The form side -------------------------------------------------------------------- */
.auth__main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; min-height: 100dvh; padding: clamp(20px, 3.4vh, 32px) var(--gutter) 26px; background: #fff; }
.auth__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.auth__back { min-height: 44px; font-size: 14.5px; }
.auth__back:hover .btn__dot { transform: translateX(-3px); }
.auth__help { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--body); font-size: 14px; transition: box-shadow .2s, color .2s, background .2s; }
.auth__help b { color: var(--ink); font-weight: 600; }
.auth__help .ico { font-size: 17px; color: var(--green-700); }
.auth__help:hover { background: var(--green-50); box-shadow: inset 0 0 0 1.5px var(--green-600); }

.auth__box { width: min(100%, 470px); margin: auto; padding: clamp(28px, 5vh, 52px) 0; }
.auth--wide .auth__box { width: min(100%, 640px); }
.auth__box > * { animation: rise .7s var(--ease) both; }
.auth__box > :nth-child(2) { animation-delay: .06s; }
.auth__box > :nth-child(3) { animation-delay: .12s; }
.auth__box > :nth-child(n+4) { animation-delay: .18s; }
.auth__box h1 { margin: 18px 0 12px; font-size: clamp(30px, 2.9vw, 42px); }
.auth__intro { margin: 0 0 26px; font-size: 16.5px; line-height: 1.65; }
.auth__intro strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.auth__box .notice { margin: 0 0 22px; }
.auth__box .notice > span { min-width: 0; overflow-wrap: anywhere; }
.auth__box .form { gap: 20px; }
.auth__box .btn--block { min-height: 56px; font-size: 16px; }

/* An error sits under its field, with a mark, in words. */
.field__error { display: flex; align-items: flex-start; gap: 7px; line-height: 1.45; }
.field__error .ico { flex: none; margin-top: 2px; font-size: 16px; }
.field__hint { line-height: 1.5; }

/* A password that can be shown while it is typed. */
.pw { position: relative; }
.pw .input { padding-right: 56px; }
.pw__eye { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); font-size: 20px; transition: background .2s, color .2s; }
.pw__eye[hidden] { display: none; }
.pw__eye:hover { background: var(--navy-50); color: var(--ink); }
.pw__eye[aria-pressed="true"] { background: var(--green-100); color: var(--green-700); }

.auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; }
.auth__row .check { align-items: center; min-height: 44px; }
.auth__row .check input { margin: 0; }
.auth__textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green-700); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.auth__textlink:hover { color: var(--navy-700); text-decoration-color: currentColor; }
.auth__textlink .ico { font-size: 17px; }

/* The way to the neighbouring page: register from sign in, sign in from register. */
.auth__alt { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 16px 16px 18px; border-radius: var(--r); background: var(--soft); transition: box-shadow .3s, transform .3s var(--ease), background .3s; }
.auth__alt:hover { background: #fff; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); transform: translateY(-2px); }
.auth__alt p { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.5; }
.auth__alt p b { color: var(--ink); font-weight: 600; }
.auth__alt .btn { flex: none; }
.auth__alt--stack { flex-wrap: wrap; padding: 18px; }
.auth__alt--stack p { flex: 1 1 60%; }
.auth__alt--stack .btn { width: 100%; }

/* The address being confirmed. */
.auth__address { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 18px; border-radius: var(--r); background: var(--navy-900); color: #fff; }
.auth__address > span:last-child { display: grid; min-width: 0; }
.auth__address small { font-size: 13px; color: rgba(255, 255, 255, .7); }
.auth__address strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.auth__signout { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; margin-top: 18px; font-size: 15px; color: var(--muted); }

.auth__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ================================================================================
   Error pages: one navy screen, the status in large figures.
   ================================================================================ */
body.err { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; color: #fff; background: linear-gradient(180deg, var(--navy-950) 0%, #082541 50%, #0E3D6A 100%); }
.err::after { content: ""; position: absolute; left: 50%; bottom: 0; z-index: -1; width: min(1100px, 90%); height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side at 50% 100%, rgba(140, 198, 63, .2), transparent); pointer-events: none; }
.err__top { padding: 26px 0; }
.err__top .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.err__logo { display: flex; align-items: center; min-height: 46px; border-radius: 8px; }
.err__logo img { height: 46px; width: auto; }
.err__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; font-size: 15px; font-weight: 500; transition: color .2s, background .2s, box-shadow .2s; }
.err__phone .ico { font-size: 17px; color: var(--green); }
.err__phone:hover { color: var(--green); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(140, 198, 63, .6); }

.err__main { flex: 1; display: grid; align-items: center; padding: clamp(20px, 4vh, 56px) 0 clamp(40px, 7vh, 80px); }
.err__grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 70px); align-items: center; }
.err__copy > * { animation: rise .7s var(--ease) both; }
.err__copy > :nth-child(2) { animation-delay: .06s; }
.err__copy > :nth-child(3) { animation-delay: .12s; }
.err__copy > :nth-child(4) { animation-delay: .18s; }
.err__copy > :nth-child(5) { animation-delay: .24s; }
.err__code { width: max-content; max-width: 100%; margin: 14px 0 6px -.035em; font-size: clamp(112px, 16.5vw, 236px); font-weight: 600; line-height: .92; letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: #fff; background: linear-gradient(180deg, #fff 38%, var(--green) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.err h1 { margin: 0 0 14px; color: #fff; font-size: clamp(28px, 3.3vw, 46px); }
.err__lede { max-width: 540px; margin: 0; color: rgba(255, 255, 255, .8); font-size: 17px; }
.err__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.err__actions .btn { padding: 0 22px; gap: 10px; }
.btn--ghost { background: rgba(255, 255, 255, .04); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
.btn--ghost .btn__dot { background: var(--green); color: var(--navy-900); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); box-shadow: 0 10px 24px rgba(4, 20, 36, .3); }

.err__visual { position: relative; animation: rise .8s var(--ease) .2s both; }
.err__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--navy-800); box-shadow: 0 40px 80px -30px rgba(2, 12, 24, .7); }
.err__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.err__visual:hover .err__photo img { transform: scale(1.06); }
.err__call { position: relative; z-index: 1; width: max-content; max-width: calc(100% - 48px); margin: -30px 0 0 24px; display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 14px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .3s var(--ease); }
.err__call:hover { transform: translateY(-3px); }
.err__call .orb { transition: transform .3s var(--ease); }
.err__call:hover .orb { transform: rotate(-12deg) scale(1.08); }
.err__call > span:last-child { min-width: 0; }
.err__call b { display: block; font-size: 16px; line-height: 1.3; }
.err__call span span { display: block; font-size: 14px; color: rgba(255, 255, 255, .8); overflow-wrap: anywhere; }

.err__foot { font-size: 14px; color: rgba(255, 255, 255, .7); }
.err__foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .12); }

/* Responsive ----------------------------------------------------------------------- */
/* A short window: the panel gives up its second sentence, then its marks, so the photograph keeps its room. */
@media (min-width: 1021px) and (max-height: 820px) {
    /* The three points below it say the same; the photograph needs the room more. */
    .auth__lede { display: none; }
    .auth__badge { padding: 10px 16px 11px; }
    .auth__badge b { font-size: 26px; }
}
@media (min-width: 1021px) and (max-height: 760px) {
    .auth__marks { display: none; }
}
@media (min-width: 1021px) and (max-height: 620px) {
    .auth__side { position: relative; height: auto; min-height: 100vh; }
    .auth__visual { min-height: 210px; }
}
/* A narrow form column: the pill keeps the number and drops the question. */
@media (min-width: 1021px) and (max-width: 1140px) {
    .auth__help-q { display: none; }
}

@media (max-width: 1020px) {
    /* The navy panel becomes a banner above the form. */
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth__side { position: relative; height: auto; gap: 18px; padding: 22px var(--gutter) 28px; }
    .auth__side::after { right: -20%; bottom: -120%; width: 70%; }
    .auth__logo img { height: 42px; }
    .auth__line { margin: 14px 0 0; max-width: 16em; font-size: clamp(24px, 4.4vw, 34px); }
    .auth__lede, .auth__marks, .auth__badge, .auth__photo figcaption { display: none; }
    .auth__gives { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
    .auth__gives li { gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 14px; font-weight: 500; }
    .auth__gives .orb { width: 28px; height: 28px; font-size: 14px; }
    /* The photograph stays, behind the words. */
    .auth__visual { position: absolute; inset: 0 0 0 38%; z-index: -1; min-height: 0; animation: none; opacity: .34; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
    .auth__photo { border-radius: 0; box-shadow: none; }
    .auth__main { min-height: 0; padding-top: 18px; }
    .auth__box { margin: 0 auto; padding: 30px 0 44px; }

    .err__grid { grid-template-columns: 1fr; }
    .err__photo { aspect-ratio: 16 / 9; }
    .err__actions .btn { padding: 0 26px; gap: 12px; }
}

@media (max-width: 680px) {
    .auth__side { padding: 16px var(--gutter) 22px; gap: 14px; }
    .auth__logo img { height: 38px; }
    .auth__pitch .tag { display: none; }
    .auth__line { margin-top: 0; font-size: 24px; }
    .auth__gives { margin-top: 14px; gap: 7px; }
    .auth__gives li { font-size: 14px; }
    /* Fainter and further right on a phone, where the words run across it. */
    .auth__visual { inset: 0 0 0 24%; opacity: .22; -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 92%); mask-image: linear-gradient(90deg, transparent 8%, #000 92%); }
    .auth__bar { justify-content: center; }
    .auth__back { display: none; }
    .auth__box { padding: 24px 0 36px; }
    .auth__box h1 { font-size: 30px; }
    .auth__intro { font-size: 16px; margin-bottom: 22px; }
    .auth__alt { flex-wrap: wrap; padding: 18px; }
    .auth__alt p { flex: 1 1 60%; }
    .auth__alt .btn { width: 100%; }
    .auth__foot { justify-content: center; text-align: center; font-size: 14px; }
    .auth__box .field__hint, .auth__box .field__error, .auth__address small, .auth__box .tag, .err .tag { font-size: 14px; }

    .err__top { padding: 16px 0; }
    .err__logo img { height: 40px; }
    .err__phone { min-height: 46px; padding: 0 16px; font-size: 14px; }
    .err__code { font-size: clamp(104px, 34vw, 150px); }
    .err h1 { font-size: 30px; }
    .err__lede { font-size: 16px; }
    .err__actions { flex-direction: column; margin-top: 24px; }
    .err__actions .btn { width: 100%; }
    .err__photo { aspect-ratio: 3 / 2; }
    .err__call { max-width: calc(100% - 24px); margin: -22px 0 0 12px; padding: 12px 16px 12px 12px; }
    .err__call b { font-size: 15px; }
    .err__foot .container { justify-content: center; text-align: center; }
}

@media (max-width: 400px) {
    .err__phone span { display: none; }
    .err__phone { width: 46px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .auth__badge { animation: none; }
}
