/*
 * ============================================================
 * PENNY LEDGER
 * Stagecoach West, L.L.C.
 *
 * FILE: public/assets/css/resend-verification.css
 * PURPOSE: Resend Email Verification Page Styling
 * VERSION: 043D
 *
 * DESIGN:
 * Matches Penny Ledger Login Page
 * Navy Blue / Gold / Ivory / White
 *
 * DEPENDENCY:
 * penny-ledger-theme.css
 * ============================================================
 */

/* ============================================================
   01. ROOT VARIABLES
   ============================================================ */

:root {
    color-scheme: light;

    --rv-navy-dark: #0c192b;
    --rv-navy: #14263d;
    --rv-navy-medium: #1b3551;
    --rv-navy-light: #244d68;

    --rv-gold: #d8b46b;
    --rv-gold-dark: #a67d33;
    --rv-gold-light: #ead4a3;

    --rv-ivory: #faf8f3;
    --rv-white: #ffffff;

    --rv-text: #19283a;
    --rv-muted: #53657a;
    --rv-border: #dce3e9;

    --rv-success: #18734e;
    --rv-error: #b42332;
    --rv-warning: #996319;

    --rv-radius: 16px;

    --rv-shadow:
        0 25px 70px rgba(12, 25, 43, 0.17);

    --rv-font:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
}

/* ============================================================
   02. RESET AND TYPOGRAPHY
   ============================================================ */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body.pl-theme {
    min-height: 100vh;
    min-height: 100dvh;

    margin: 0;

    color: var(--rv-text);

    background:
        radial-gradient(
            ellipse at 12% 20%,
            rgba(216, 180, 107, 0.10),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #faf8f3 0%,
            #f5f3ee 55%,
            #faf8f3 100%
        );

    font-family: var(--rv-font);

    font-size: 15px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

/*
 * Explicit typography ensures that all elements
 * match the sans-serif Login page design.
 */

body.pl-theme .page-shell,
body.pl-theme .page-shell * {
    font-family: var(--rv-font);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

/* ============================================================
   03. PAGE LAYOUT
   ============================================================ */

.page-shell {
    display: flex;
    flex-direction: column;

    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;
}

.main-content {
    display: flex;
    flex: 1;

    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 38px 20px 48px;
}

/* ============================================================
   04. HEADER
   ============================================================ */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;
    min-height: 72px;

    padding: 15px 35px;

    background: rgba(255, 255, 255, 0.55);

    border-bottom:
        1px solid rgba(20, 38, 61, 0.08);
}

.brand-link {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    color: var(--rv-navy);
    text-decoration: none;
}

.brand-link:hover {
    opacity: 0.9;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    color: var(--rv-gold);

    background: var(--rv-navy);

    border: 1px solid var(--rv-gold-dark);
    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;
}

.brand-text {
    color: var(--rv-navy);

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.header-label {
    color: var(--rv-gold-dark);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.3px;
    text-transform: uppercase;
}

/* ============================================================
   05. VERIFICATION CARD
   ============================================================ */

.verification-card {
    width: 100%;
    max-width: 430px;

    padding: 0 30px 30px;

    overflow: hidden;

    background: var(--rv-white);

    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);

    box-shadow: var(--rv-shadow);

    animation:
        card-entrance 350ms ease-out both;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ============================================================
   06. NAVY BRAND PANEL
   ============================================================ */

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: calc(100% + 60px);
    min-height: 160px;

    margin: 0 -30px 27px;

    color: var(--rv-gold);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(216, 180, 107, 0.12),
            transparent 60%
        ),
        linear-gradient(
            145deg,
            var(--rv-navy-dark),
            var(--rv-navy) 70%,
            var(--rv-navy-light)
        );

    border-bottom:
        3px solid var(--rv-gold);
}

.card-icon svg {
    display: block;

    width: 72px;
    height: 72px;

    padding: 17px;

    color: var(--rv-gold);

    border: 1px solid var(--rv-gold-dark);
    border-radius: 50%;
}

/* ============================================================
   07. CARD HEADING
   ============================================================ */

.card-heading {
    text-align: left;
}

.eyebrow {
    margin: 0 0 8px;

    color: var(--rv-gold-dark);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.card-heading h1 {
    margin: 0;

    color: var(--rv-navy-dark);

    font-size: 23px;
    font-weight: 800;

    line-height: 1.3;
    letter-spacing: -0.6px;
}

.card-description {
    margin: 12px 0 0;

    color: var(--rv-muted);

    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================
   08. VERIFICATION FORM
   ============================================================ */

.verification-form {
    display: flex;
    flex-direction: column;

    gap: 22px;

    margin-top: 27px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-group label {
    color: var(--rv-navy-dark);

    font-size: 13px;
    font-weight: 700;
}

.form-input {
    display: block;

    width: 100%;
    min-height: 45px;

    padding: 11px 13px;

    color: var(--rv-text);
    background: #ffffff;

    border: 1px solid var(--rv-border);
    border-radius: 8px;

    outline: none;

    font-size: 14px;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.form-input::placeholder {
    color: #8b9ab0;
    opacity: 1;
}

.form-input:hover:not(:disabled) {
    border-color: #aab8c8;
}

.form-input:focus {
    border-color: var(--rv-gold-dark);

    box-shadow:
        0 0 0 4px rgba(216, 180, 107, 0.16);
}

.form-input.is-invalid {
    border-color: var(--rv-error);
}

.form-input.is-invalid:focus {
    box-shadow:
        0 0 0 4px rgba(180, 35, 50, 0.12);
}

.form-input:disabled {
    background: #edf0f3;
    color: #69798a;
    cursor: not-allowed;
}

.field-hint {
    margin: 0;

    color: var(--rv-muted);

    font-size: 12px;
    line-height: 1.55;
}

/* ============================================================
   09. PRIMARY BUTTON
   ============================================================ */

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
    min-height: 45px;

    padding: 11px 18px;

    color: #ffffff;

    background:
        linear-gradient(
            120deg,
            var(--rv-navy),
            var(--rv-navy-light)
        );

    border: 1px solid var(--rv-navy);
    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.primary-button:hover:not(:disabled) {
    background:
        linear-gradient(
            120deg,
            var(--rv-navy-medium),
            #315b79
        );

    box-shadow:
        0 7px 18px rgba(20, 38, 61, 0.17);

    transform: translateY(-1px);
}

.primary-button:active:not(:disabled) {
    transform: translateY(0);
}

.primary-button:focus-visible {
    outline: 3px solid var(--rv-gold);
    outline-offset: 3px;
}

.primary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   10. LOADING SPINNER
   ============================================================ */

.button-spinner {
    display: inline-block;

    width: 16px;
    height: 16px;

    flex-shrink: 0;

    border:
        2px solid rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;
    border-radius: 50%;

    animation:
        spinner-rotate 750ms linear infinite;
}

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

/* ============================================================
   11. STATUS MESSAGES
   ============================================================ */

.status-message {
    margin-top: 20px;

    padding: 13px 15px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 13px;
    line-height: 1.65;

    overflow-wrap: anywhere;
}

.status-message.is-success {
    color: var(--rv-success);
    background: #effaf4;
    border-color: #b9e6ca;
}

.status-message.is-error {
    color: var(--rv-error);
    background: #fff2f2;
    border-color: #f1c2c7;
}

.status-message.is-warning {
    color: var(--rv-warning);
    background: #fff8e9;
    border-color: #ecd7a3;
}

.status-message.is-info {
    color: #245a91;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* ============================================================
   12. SECURITY NOTICE
   ============================================================ */

.security-notice {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin-top: 24px;
    padding: 14px;

    background: #f5f7fa;

    border: 1px solid var(--rv-border);
    border-radius: 10px;
}

.security-icon {
    flex-shrink: 0;

    margin-top: 1px;

    font-size: 17px;
    line-height: 1.4;
}

.security-notice p {
    margin: 0;

    color: var(--rv-muted);

    font-size: 12px;
    line-height: 1.7;
}

/* ============================================================
   13. NAVIGATION
   ============================================================ */

.card-navigation {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 23px;
    padding-top: 19px;

    border-top:
        1px solid var(--rv-border);
}

.return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    color: var(--rv-navy-medium);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 180ms ease;
}

.return-link:hover {
    color: var(--rv-gold-dark);
    text-decoration: underline;
}

.return-link:focus-visible {
    outline: 3px solid var(--rv-gold);
    outline-offset: 4px;
    border-radius: 3px;
}

/* ============================================================
   14. FOOTER
   ============================================================ */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;
    gap: 9px;

    width: 100%;

    padding: 18px 20px 25px;

    color: var(--rv-muted);

    font-size: 12px;
    line-height: 1.6;

    text-align: center;
}

.footer-divider {
    color: var(--rv-gold-dark);
}

/* ============================================================
   15. TABLET
   ============================================================ */

@media (max-width: 768px) {
    .site-header {
        min-height: 68px;
        padding: 14px 23px;
    }

    .main-content {
        padding: 32px 18px 42px;
    }

    .verification-card {
        max-width: 420px;
    }
}

/* ============================================================
   16. MOBILE
   ============================================================ */

@media (max-width: 480px) {
    .site-header {
        min-height: 64px;
        padding: 12px 16px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .brand-text {
        font-size: 18px;
    }

    .header-label {
        font-size: 10px;
        letter-spacing: 0.7px;
    }

    .main-content {
        align-items: flex-start;
        padding: 25px 13px 35px;
    }

    .verification-card {
        padding: 0 22px 25px;
        border-radius: 14px;
    }

    .card-icon {
        width: calc(100% + 44px);
        min-height: 145px;
        margin: 0 -22px 25px;
    }

    .card-heading h1 {
        font-size: 21px;
    }

    .card-description {
        font-size: 13px;
    }

    .verification-form {
        margin-top: 25px;
    }

    .security-notice {
        padding: 12px;
    }

    .site-footer {
        padding: 15px 12px 22px;
        font-size: 11px;
    }
}

/* ============================================================
   17. SMALL MOBILE
   ============================================================ */

@media (max-width: 350px) {
    .header-label {
        display: none;
    }

    .verification-card {
        padding-left: 17px;
        padding-right: 17px;
    }

    .card-icon {
        width: calc(100% + 34px);
        margin-left: -17px;
        margin-right: -17px;
    }
}

/* ============================================================
   18. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}