.app-layout .review-container {
    display: flex;
    gap: 20px;
}

.app-layout .review-details {
    flex: 1;
    min-width: 0;
}

.app-layout .review-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7dee8;
    flex: 2;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    border-radius: 8px;
    background: #16202c;
    box-shadow: 0 12px 30px rgba(23, 37, 54, 0.18);
}

.app-layout .review-preview iframe,
.app-layout .review-preview img {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 4px;
    background: white;
}

.app-layout .preview-heading {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    color: #dbeafe;
    background: #1f2d3d;
    border-bottom: 1px solid #3a4b60;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.app-layout .preview-canvas {
    position: relative;
    width: 100%;
    height: 600px;
    flex: 0 0 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.app-layout .preview-canvas iframe,
.app-layout .preview-canvas img {
    position: relative;
    z-index: 1;
    display: block;
}

@media (max-width: 900px) {
    .app-layout .review-container {
        flex-direction: column;
    }

    .app-layout .review-preview {
        min-height: 0;
    }
}

.app-layout .preview-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #e5edf7;
    background: rgba(22, 32, 44, 0.94);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.app-layout .preview-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-layout .preview-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #67b7ff;
    border-radius: 50%;
    animation: preview-spin 0.8s linear infinite;
}

@keyframes preview-spin {
    to { transform: rotate(360deg); }
}

.deadline-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 12px;
    margin: 12px 0;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 13px;
}

.deadline-filters label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.deadline-filters input {
    margin: 0;
}

.deadline-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.deadline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 10px 0;
    color: #475569;
    font-size: 12px;
}

.legend-submitted,
.summary-submitted {
    color: #198754;
}

.legend-unsubmitted,
.summary-unsubmitted {
    color: #dc3545;
}

.deadline-summary-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px;
    border-left: 4px solid #0756a8;
    background: #f8fafc;
    font-size: 12px;
}

.deadline-summary-group strong {
    width: 100%;
    color: #0756a8;
}

.deadline-summary-group span {
    display: inline-block;
    margin-right: 8px;
    white-space: nowrap;
}

.deadline-summary-group span {
    color: #475569;
}

.submission-deadline {
    color: #146c43;
    font-size: 12px;
}

.submission-deadline.is-overdue {
    color: #b02a37;
    font-weight: 700;
}

.submission-state {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.submission-state.submitted {
    color: #146c43;
    background: #d1e7dd;
}

.submission-state.submitted-late {
    color: #842029;
    background: #f8d7da;
}

.submission-state.pending {
    color: #664d03;
    background: #fff3cd;
}

.deadline-near {
    background: #fd7e14;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.stats-header h2,
.stats-header p {
    margin: 0;
}

.stats-header p {
    color: #64748b;
    margin-top: 4px;
}

.stats-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stats-filters label {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.stats-filters select {
    display: block;
    min-width: 130px;
    margin-top: 4px;
    padding: 7px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.stats-card {
    padding: 14px;
    border-left: 4px solid #0756a8;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08);
}

.stats-card span,
.stats-card strong {
    display: block;
}

.stats-card span {
    color: #64748b;
    font-size: 12px;
}

.stats-card strong {
    color: #172033;
    font-size: 26px;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.stats-panel {
    min-height: 280px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(23, 32, 51, 0.06);
}

.stats-panel h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.stats-panel canvas {
    width: 100% !important;
    height: 230px !important;
}

@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-filters,
    .stats-filters label,
    .stats-filters select {
        width: 100%;
    }
}
 /* =========================================================
    PICPA GEMS LOGIN
    MODERN PROFESSIONAL DESIGN
    ========================================================= */

:root {
    --primary: #0756a8;
    --primary-dark: #043d7a;
    --primary-light: #2f80d1;

    --navy: #071a2f;
    --navy-light: #102c4b;

    --text: #172033;
    --text-muted: #64748b;

    --border: #dbe3ec;

    --background: #f4f7fb;

    --danger: #dc3545;
    --danger-bg: #fff1f2;

    --success: #198754;

    --radius: 16px;

    --transition: 0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    min-height: 100vh;

    margin: 0;
    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(37, 99, 235, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(14, 165, 233, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #eef4fa 0%,
            #f8fafc 50%,
            #edf3f9 100%
        );

    -webkit-font-smoothing: antialiased;
}


.login-shell {

    position: relative;
    z-index: 2;

    width: min(1080px, 100%);

    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.82fr);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;

    background: rgba(255, 255, 255, 0.54);

    box-shadow: 0 25px 70px rgba(15, 35, 60, 0.12);

    animation: loginFadeIn 0.55s ease both;
}


.login-panel {

    position: relative;

    min-height: 620px;

    padding: 52px 52px 38px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(145deg, #06386f 0%, #0756a8 58%, #0c72bd 100%);
}


.login-panel::after {

    content: "";

    position: absolute;
    width: 280px;
    height: 280px;
    right: -125px;
    bottom: -120px;

    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;

    box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.035), 0 0 0 52px rgba(255, 255, 255, 0.025);
}


.panel-brand {

    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.panel-brand img {

    width: 38px;
    height: 38px;

    object-fit: contain;
    filter: brightness(0) invert(1);
}


.panel-copy {

    position: relative;
    z-index: 1;

    max-width: 400px;
    margin: auto 0 34px;
}


.panel-kicker {

    margin: 0 0 15px;

    color: #a8e57f;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.panel-copy h1 {

    margin: 0 0 17px;

    color: #ffffff;

    font-size: clamp(31px, 3vw, 45px);
    font-weight: 800;
    line-height: 1.08;
}


.panel-copy > p:last-child {

    max-width: 370px;
    margin: 0;

    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.7;
}


.panel-points {

    position: relative;
    z-index: 1;

    display: grid;
    gap: 14px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.panel-points li {

    display: flex;
    align-items: center;
    gap: 12px;

    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
}


.panel-points i {

    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 9px;

    color: #b8f28d;
    font-size: 15px;
}


.panel-footer {

    position: relative;
    z-index: 1;

    margin-top: auto;
    padding-top: 28px;

    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   BACKGROUND DECORATION
   ========================================================= */

body::before {
    content: "";

    position: fixed;

    width: 420px;
    height: 420px;

    top: -180px;
    right: -160px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(7, 86, 168, 0.10),
            rgba(47, 128, 209, 0.02)
        );

    pointer-events: none;
}


body::after {
    content: "";

    position: fixed;

    width: 350px;
    height: 350px;

    bottom: -180px;
    left: -140px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(7, 86, 168, 0.08),
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   LOGIN CONTAINER
   ========================================================= */

.login-container {

    position: relative;
    z-index: 2;

    width: 100%;
    max-width: none;

    min-width: 0;

    padding: 38px 40px 34px;

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid rgba(255, 255, 255, 0.8);

    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(15, 35, 60, 0.12),
        0 4px 15px rgba(15, 35, 60, 0.05);

    text-align: center;

    animation: none;
}


@keyframes loginFadeIn {

    from {
        opacity: 0;

        transform:
            translateY(22px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    position: relative;

    width: 108px;
    height: 108px;

    margin: 0 auto 20px;

    padding: 8px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border:
        1px solid #e5edf5;

    border-radius: 50%;

    box-shadow:
        0 10px 30px rgba(7, 86, 168, 0.13);
}


.logo::after {

    content: "";

    position: absolute;

    inset: -6px;

    border:
        1px solid rgba(7, 86, 168, 0.08);

    border-radius: 50%;

    pointer-events: none;
}


.logo img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 50%;
}


/* =========================================================
   TITLE
   ========================================================= */

h2 {

    margin: 0;

    color: var(--navy);

    font-size: 28px;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.02em;
}


.subtitle {

    margin: 8px 0 28px;

    color: var(--text-muted);

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 0.02em;
}


.login-heading .eyebrow {

    margin: 0 0 7px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.login-diamond {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 3px;
    overflow: hidden;
    vertical-align: 0 em;
    border: 5px solid;
    border-top-color: #f3ffff;
    border-left-color: #4ba9df;
    border-right-color: #a9f1ff;
    border-bottom-color: #547fd7;
    border-radius: 5px;
    background: linear-gradient(135deg, #f3ffff 0%, #8deaff 38%, #548de8 100%);
    box-shadow: 0 0 8px rgba(107, 213, 255, 0.6), inset 0 0 5px rgba(255, 255, 255, 0.8);
    transform: rotate(45deg) scale(0.78);
}

.login-diamond.is-shining {
    animation: login-gem-float 4s ease-in-out infinite, login-gem-shine 2.8s ease-in-out infinite;
}

@keyframes login-gem-float {
    0%, 100% {
        transform: translateY(0) rotate(45deg) scale(0.78);
    }
    50% {
        transform: translateY(-5px) rotate(45deg) scale(0.78);
    }
}

@keyframes login-gem-shine {
    0%, 100% {
        box-shadow: 0 0 8px rgba(107, 213, 255, 0.6), inset 0 0 5px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 13px rgba(107, 213, 255, 0.9), inset 0 0 7px rgba(255, 255, 255, 0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-diamond.is-shining {
        animation: none;
    }
}


.login-heading .subtitle {

    max-width: 280px;

    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   ERROR / ALERT
   ========================================================= */

.error {

    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 18px;

    padding: 12px 14px;

    background: var(--danger-bg);

    border:
        1px solid #fecdd3;

    border-radius: 11px;

    color: #b4232f;

    font-size: 12px;

    font-weight: 500;

    line-height: 1.5;

    text-align: left;

    animation:
        alertFadeIn 0.3s ease both;
}


.error::before {

    content: "\f33a";

    flex: 0 0 auto;

    font-family:
        "bootstrap-icons";

    font-size: 15px;

    line-height: 1.3;
}


@keyframes alertFadeIn {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   FORM
   ========================================================= */

form {

    width: 100%;

    text-align: left;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {

    margin-bottom: 18px;
}


.form-group label {

    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.01em;
}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.input-group {

    position: relative;

    width: 100%;
}


/* =========================================================
   LEFT INPUT ICON
   ========================================================= */

.input-group > i:first-child {

    position: absolute;

    z-index: 2;

    left: 15px;
    top: 50%;

    transform:
        translateY(-50%);

    color: #7b8ba1;

    font-size: 17px;

    pointer-events: none;

    transition:
        color var(--transition);
}


/* =========================================================
   INPUT
   ========================================================= */

.input-group input {

    width: 100%;
    height: 50px;

    padding:
        0 46px
        0 45px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    outline: none;

    background: #f8fafc;

    color: #172033;

    font-family: inherit;

    font-size: 14px;

    font-weight: 500;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}


.input-group input::placeholder {

    color: #94a3b8;

    font-weight: 400;
}


.input-group input:hover {

    border-color: #c5d2df;

    background: #ffffff;
}


.input-group input:focus {

    border-color: var(--primary);

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(7, 86, 168, 0.10);
}


.input-group:focus-within > i:first-child {

    color: var(--primary);
}


/* =========================================================
   PASSWORD SHOW/HIDE BUTTON
   ========================================================= */

.password-toggle {

    position: absolute;

    z-index: 5;

    right: 6px;
    top: 50%;

    width: 38px;
    height: 38px;

    transform:
        translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: #7b8ba1;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition);
}


.password-toggle:hover {

    background: #eef4fa;

    color: var(--primary);
}


.password-toggle:focus-visible {

    outline:
        2px solid
        rgba(7, 86, 168, 0.35);

    outline-offset: 1px;
}


.password-toggle i {

    font-size: 16px;

    line-height: 1;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

form > button[type="submit"] {

    position: relative;

    width: 100%;

    height: 50px;

    margin-top: 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 18px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.01em;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(7, 86, 168, 0.20);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}


form > button[type="submit"]:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 24px
        rgba(7, 86, 168, 0.27);

    background:
        linear-gradient(
            135deg,
            #0967c4,
            #043b78
        );
}


form > button[type="submit"]:active {

    transform: translateY(0);

    box-shadow:
        0 5px 12px
        rgba(7, 86, 168, 0.20);
}


form > button[type="submit"]:focus-visible {

    outline:
        3px solid
        rgba(7, 86, 168, 0.20);

    outline-offset: 2px;
}


form > button[type="submit"] i {

    font-size: 16px;
}


/* =========================================================
   LOGIN BUTTON LOADING STATE
   ========================================================= */

form > button[type="submit"].loading {

    cursor: wait;

    pointer-events: none;

    opacity: 0.85;
}


form > button[type="submit"].loading i {

    animation:
        loginSpin 0.8s linear infinite;
}


@keyframes loginSpin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.forgot-link {

    margin-top: 20px;

    text-align: center;

    font-size: 13px;
}


.forgot-link a {

    color: var(--primary);

    font-weight: 600;

    text-decoration: none;

    transition:
        color var(--transition);
}


.forgot-link a:hover {

    color: var(--primary-dark);

    text-decoration: underline;
}


/* =========================================================
   ALTERNATIVE SIGN-IN OPTIONS
   ========================================================= */

.social-login {

    margin-top: 25px;
}


.social-divider {

    display: flex;

    align-items: center;

    gap: 12px;

    color: #94a3b8;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


.social-divider::before,
.social-divider::after {

    content: "";

    height: 1px;

    flex: 1;

    background: #e8eef4;
}


.social-buttons {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 15px;
}


.social-button {

    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: #ffffff;

    font-size: 17px;

    cursor: not-allowed;

    opacity: 0.82;

    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}


.social-button:hover {

    opacity: 1;

    transform: translateY(-2px);

    box-shadow: 0 7px 16px rgba(15, 35, 60, 0.10);
}


.social-button:focus-visible {

    outline: 3px solid rgba(7, 86, 168, 0.18);

    outline-offset: 2px;
}


.social-google { color: #db4437; }
.social-facebook { color: #1877f2; }
.social-apple { color: #172033; }


/* =========================================================
   SMALL FOOTER DETAIL
   ========================================================= */

.login-container::after {

    content: "PICPA National Office • IN HOUSE SYSTEM • PICPA IT DIVISION";

    display: block;

    margin-top: 25px;

    padding-top: 18px;

    border-top:
        1px solid #edf1f5;

    color: #9aa8b8;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   AUTOFILL
   ========================================================= */

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {

    -webkit-text-fill-color: #172033;

    -webkit-box-shadow:
        0 0 0 1000px #ffffff inset;

    transition:
        background-color 5000s ease-in-out 0s;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body {

        padding: 16px;
    }


    .login-shell {

        display: block;

        border-radius: 20px;
    }


    .login-panel {

        min-height: 0;
        padding: 30px 24px 27px;
    }


    .panel-copy {

        margin: 42px 0 25px;
    }


    .panel-copy h1 {

        max-width: 360px;
        font-size: 30px;
    }


    .panel-copy > p:last-child {

        font-size: 14px;
    }


    .panel-footer {

        display: none;
    }


    .login-container {

        max-width: 100%;

        padding:
            30px 24px 26px;

        border-radius: 20px;
    }


    .logo {

        width: 92px;
        height: 92px;

        margin-bottom: 18px;
    }


    h2 {

        font-size: 22px;
    }


    .subtitle {

        margin-bottom: 24px;

        font-size: 12px;
    }


    .input-group input {

        height: 48px;
    }


    form > button[type="submit"] {

        height: 48px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    body {

        padding: 12px;
    }


    .login-container {

        padding:
            26px 18px 22px;

        border-radius: 18px;
    }


    .logo {

        width: 82px;
        height: 82px;
    }


    h2 {

        font-size: 20px;
    }


    .subtitle {

        font-size: 11px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
