/* ============================================================
   Pontis Construction — portal sign-in
   Standalone: the login view loads only this file plus Heebo and
   Bootstrap Icons. It deliberately does NOT load dashboard.css, whose
   .loginpage rules style the previous design.
   ============================================================ */

:root {
    --p-orange: #e56200;
    --p-orange-lift: #ff8b33;   /* AA-safe orange for small text on dark */
    --p-orange-deep: #b84d00;
    --p-ink: #12100f;
    --p-ink-2: #1c1917;
    --p-text: #f6f4f2;
    --p-muted: #a9a29c;
    --p-line: rgba(255, 255, 255, 0.12);
    --p-glass: rgba(22, 19, 17, 0.62);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Heebo", -apple-system, "Segoe UI", sans-serif;
    color: var(--p-text);
    background: var(--p-ink);
    -webkit-font-smoothing: antialiased;
}

/* ---------- cinematic stage ---------- */
.pl {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    overflow: hidden;
    isolation: isolate;
}

.pl__bg,
.pl__scrim,
.pl__dust {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pl__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slow push-in. Starts already scaled so there is never a bare edge. */
    transform: scale(1.06);
    animation: plZoom 38s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes plZoom {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to   { transform: scale(1.16) translate3d(-1.2%, -1%, 0); }
}

/* Darken for text contrast, then warm the scene with a brand-orange key light. */
.pl__scrim {
    background:
        radial-gradient(120% 80% at 78% 18%, rgba(229, 98, 0, 0.30) 0%, transparent 55%),
        linear-gradient(180deg, rgba(10, 9, 8, 0.82) 0%, rgba(10, 9, 8, 0.55) 42%, rgba(10, 9, 8, 0.92) 100%);
}

.pl__dust {
    pointer-events: none;
    opacity: 0.55;
}

/* ---------- card ---------- */
.pl__card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 448px;
    padding: 40px 38px 34px;
    border-radius: 22px;
    background: var(--p-glass);
    border: 1px solid var(--p-line);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* thin warm edge along the top of the card */
.pl__card::before {
    content: "";
    position: absolute;
    top: -1px; left: 22px; right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 98, 0, 0.85), transparent);
}

.pl__logo {
    display: block;
    width: 132px;
    height: auto;
    margin-bottom: 26px;
}

.pl__title {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pl__sub {
    margin: 7px 0 26px;
    font-size: 14.5px;
    color: var(--p-muted);
}

/* ---------- fields ---------- */
.pl__field {
    position: relative;
    margin-bottom: 18px;
}

.pl__label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--p-muted);
    transition: color 220ms var(--ease);
}

.pl__field:focus-within .pl__label { color: var(--p-orange-lift); }

.pl__input {
    width: 100%;
    padding: 13px 16px;
    /* 16px stops iOS Safari zooming the page when a field is focused */
    font: inherit;
    font-size: 16px;
    color: var(--p-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--p-line);
    border-radius: 11px;
    transition: border-color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}

.pl__input::placeholder { color: rgba(255, 255, 255, 0.28); }

.pl__input:hover { border-color: rgba(255, 255, 255, 0.22); }

.pl__input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--p-orange);
    box-shadow: 0 0 0 3px rgba(229, 98, 0, 0.20);
}

/* password reveal */
.pl__reveal {
    position: absolute;
    right: 6px;
    bottom: 4px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--p-muted);
    cursor: pointer;
    transition: color 200ms var(--ease), background 200ms var(--ease);
}

.pl__reveal:hover { color: var(--p-text); background: rgba(255, 255, 255, 0.07); }
.pl__reveal svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- meta row ---------- */
.pl__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 24px;
}

.pl__remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--p-muted);
    cursor: pointer;
    user-select: none;
}

.pl__remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--p-orange);
    cursor: pointer;
}

.pl__link {
    font-size: 14px;
    color: var(--p-orange-lift);
    text-decoration: none;
    transition: color 200ms var(--ease);
}

.pl__link:hover { color: #ffa763; text-decoration: underline; }

/* ---------- verification code ---------- */
.pl__input--code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-align: center;
    padding: 15px 16px;
}

.pl__status--warn {
    background: rgba(183, 121, 31, 0.16);
    border-color: rgba(183, 121, 31, 0.45);
    color: #f0c07a;
}

/* Looks like a link, behaves like the button it needs to be for a POST. */
.pl__linkbtn {
    padding: 6px 2px;
    font: inherit;
    font-size: 14px;
    color: var(--p-orange-lift);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pl__linkbtn:hover { color: #ffa763; }

/* Shown in place of the reset link when self-service reset is off. */
.pl__hint {
    font-size: 13.5px;
    color: var(--p-muted);
    cursor: default;
}

/* ---------- submit ---------- */
.pl__submit {
    position: relative;
    width: 100%;
    padding: 14px 22px;
    font: inherit;
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--p-orange) 0%, var(--p-orange-deep) 100%);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(229, 98, 0, 0.32);
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), filter 200ms var(--ease);
}

.pl__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(229, 98, 0, 0.42);
    filter: brightness(1.05);
}

.pl__submit:active { transform: scale(0.985); }

/* sheen sweep */
.pl__submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -85%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left 620ms var(--ease);
}

.pl__submit:hover::after { left: 130%; }

.pl__submit__spin {
    display: none;
    width: 17px;
    height: 17px;
    margin-right: 9px;
    vertical-align: -3px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: plSpin 0.7s linear infinite;
}

@keyframes plSpin { to { transform: rotate(360deg); } }

.pl__form.is-busy .pl__submit { pointer-events: none; opacity: 0.9; }
.pl__form.is-busy .pl__submit__spin { display: inline-block; }

/* ---------- messages ---------- */
.pl__error {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: #ff8f93;
}

.pl__error:empty { display: none; }

.pl__status {
    margin-bottom: 18px;
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 10px;
    background: rgba(48, 164, 108, 0.14);
    border: 1px solid rgba(48, 164, 108, 0.4);
    color: #7fd3a5;
}

.pl__foot {
    margin: 22px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.38);
}

/* Guidance under the resend button. Lighter than body copy but still readable —
   it is the only thing pointing a user with a wrong address towards a way out. */
.pl__hint {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

/* ---------- entrance ---------- */
/* Children rise in sequence. Kept short (≈460ms each, 70ms apart) so the page
   feels immediate rather than staged. */
.pl__reveal-in > * {
    opacity: 0;
    transform: translateY(14px);
    animation: plRise 460ms var(--ease) forwards;
}

@keyframes plRise {
    to { opacity: 1; transform: translateY(0); }
}

.pl__reveal-in > *:nth-child(1) { animation-delay: 120ms; }
.pl__reveal-in > *:nth-child(2) { animation-delay: 190ms; }
.pl__reveal-in > *:nth-child(3) { animation-delay: 260ms; }
.pl__reveal-in > *:nth-child(4) { animation-delay: 330ms; }
.pl__reveal-in > *:nth-child(5) { animation-delay: 400ms; }
.pl__reveal-in > *:nth-child(6) { animation-delay: 470ms; }
.pl__reveal-in > *:nth-child(7) { animation-delay: 540ms; }

.pl__card {
    opacity: 0;
    animation: plCard 620ms var(--ease) 60ms forwards;
}

@keyframes plCard {
    from { opacity: 0; transform: translateY(22px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------------------------------------
   Guest pages (forgot / reset / confirm password, verify email)
   These reuse Laravel Breeze components whose Tailwind classes do not resolve
   in this project, so the plain elements are styled directly instead.
   ------------------------------------------------------------ */
.pl__slot { color: var(--p-text); }

.pl__slot p,
.pl__slot div:not([class*="pl__"]) {
    font-size: 14.5px;
    line-height: 1.6;
}

.pl__slot label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--p-muted);
}

.pl__slot input[type="text"],
.pl__slot input[type="email"],
.pl__slot input[type="password"] {
    width: 100%;
    margin-bottom: 4px;
    padding: 13px 16px;
    font: inherit;
    font-size: 16px;
    color: var(--p-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--p-line);
    border-radius: 11px;
    transition: border-color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}

.pl__slot input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--p-orange);
    box-shadow: 0 0 0 3px rgba(229, 98, 0, 0.20);
}

.pl__slot button,
.pl__slot [type="submit"] {
    margin-top: 18px;
    padding: 13px 22px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--p-orange) 0%, var(--p-orange-deep) 100%);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(229, 98, 0, 0.30);
    transition: transform 200ms var(--ease), filter 200ms var(--ease);
}

.pl__slot button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pl__slot button:active { transform: scale(0.985); }

/* Breeze's <x-input-error> renders a list/paragraph of messages. */
.pl__slot .text-red-600,
.pl__slot ul li {
    margin-top: 6px;
    font-size: 13px;
    color: #ff8f93;
    list-style: none;
}

.pl__slot ul { margin: 0; padding: 0; }

.pl__slot a { color: var(--p-orange-lift); }

/* ---------- responsive ---------- */
@media (max-width: 480px) {
    .pl { padding: 20px 16px; }
    .pl__card { padding: 30px 22px 26px; border-radius: 18px; }
    .pl__logo { width: 112px; margin-bottom: 20px; }
    .pl__title { font-size: 23px; }
    .pl__meta { flex-wrap: wrap; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .pl__bg { animation: none; transform: scale(1.02); }
    .pl__dust { display: none; }
    .pl__card,
    .pl__reveal-in > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .pl__submit::after { transition: none; }
    * { transition-duration: 0.01ms !important; }
}
