/* =========================
   LeaveLens account pages
   ========================= */

.account-page-shell {
    max-width: 1080px;
    margin: 2.25rem auto 4rem;
    padding: 0 1rem;
}

.account-page-shell--narrow {
    max-width: 760px;
}

.account-page-shell--medium {
    max-width: 920px;
}

.account-page-shell--wide {
    max-width: 1180px;
}

.ll-panel.account-panel,
.account-page-shell .ll-panel {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1.35rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.ll-page-header.account-page-header,
.account-page-shell .ll-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.45rem 1.55rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
}

.account-page-header--center {
    justify-content: center !important;
    text-align: center;
}

.account-page-header--compact {
    padding-bottom: 0 !important;
}

.ll-panel-body.account-panel-body,
.account-page-shell .ll-panel-body {
    padding: 1.2rem 1.55rem 1.45rem;
}

.ll-eyebrow,
.account-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.ll-page-title,
.account-title {
    margin: 0;
    font-size: 2.15rem;
    line-height: 1.05;
    font-weight: 800;
    color: #212529;
}

.ll-page-subtitle,
.account-subtitle {
    margin: 0.55rem 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 56rem;
}

.account-panel-body > .account-subtitle:first-child {
    margin-top: 0;
}

.account-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.account-toolbar .btn {
    border-radius: 0.95rem;
    font-weight: 700;
}

.account-section + .account-section {
    margin-top: 1rem;
}

.account-surface {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    padding: 1.05rem 1.1rem;
}

.account-surface--soft {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.account-surface--accent {
    background: linear-gradient(180deg, #fffaf0 0%, #fffdf7 100%);
    border-color: #f1dfb0;
}

.account-surface-header {
    margin-bottom: 0.9rem;
}

.account-section-title {
    margin: 0 0 0.35rem;
    font-size: 1.18rem;
    font-weight: 800;
    color: #1f2937;
}

.account-section-subtitle {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.account-divider {
    margin: 1.1rem 0;
    border: 0;
    border-top: 1px solid #edf2f7;
}

.account-helper-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
}

.account-helper-list li + li {
    margin-top: 0.4rem;
}

.account-note,
.account-info-box {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid #f1dfb0;
    background: #fffaf0;
    color: #6b4b00;
}

.account-note i,
.account-info-box i {
    margin-top: 0.12rem;
    color: #9a6a00;
}

.account-success-box {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid #bfe6c8;
    background: #f5fcf7;
    color: #166534;
    align-items: center;
    text-align: left;
}

.account-danger-box {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

.account-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.account-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.account-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.account-school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.account-school-grid .card {
    border: 1px solid #e5e7eb;
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    background: #ffffff;
}

.account-school-grid .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 1.1rem;
}

.account-school-grid .card-header h5 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #1f2937;
}

.account-school-grid .list-group-item {
    padding: 0.85rem 1.1rem;
    border-color: #edf2f7;
}

.account-school-grid .list-group-item p {
    margin: 0;
    color: #334155;
}

.account-school-grid .card-footer {
    background: #fffaf0;
    border-top: 1px solid #f1dfb0;
    padding: 0.9rem 1.1rem;
}

.account-school-grid .btn-warning {
    color: #5f4300 !important;
    background: #ffcf78;
    border-color: #ffcf78;
    font-weight: 700;
}

.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.account-stat-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 1rem;
    padding: 1rem 1rem 0.95rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.account-stat-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.account-stat-value {
    font-size: 1.45rem;
    line-height: 1.05;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.account-stat-meta {
    font-size: 0.84rem;
    line-height: 1.4;
    color: #64748b;
}

.account-form-block .form-control,
.account-form-block .form-select,
.account-page-shell .form-control,
.account-page-shell .form-select {
    min-height: 48px;
    border-radius: 0.95rem;
    border-color: #dbe2ea;
    box-shadow: none;
}

.account-form-block textarea.form-control,
.account-page-shell textarea.form-control {
    min-height: 120px;
}

.account-form-block .form-control:focus,
.account-form-block .form-select:focus,
.account-page-shell .form-control:focus,
.account-page-shell .form-select:focus {
    border-color: #debd73;
    box-shadow: 0 0 0 0.2rem rgba(222, 189, 115, 0.18);
}

.account-form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
}

.account-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

    .account-actions .btn,
    .account-page-shell .btn {
        border-radius: 0.95rem;
        padding: 0.72rem 1rem;
        font-weight: 700;
        transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

        .account-page-shell .btn:focus,
        .account-page-shell .btn:active {
            box-shadow: none;
        }

        .account-page-shell .btn:focus-visible {
            outline: none;
        }

/* Filled buttons */
.account-page-shell .btn-primary,
.account-page-shell .btn-success,
.account-page-shell .btn-warning {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

    .account-page-shell .btn-primary:hover,
    .account-page-shell .btn-success:hover,
    .account-page-shell .btn-warning:hover {
        transform: translateY(-1px);
    }

    .account-page-shell .btn-primary:focus-visible,
    .account-page-shell .btn-success:focus-visible,
    .account-page-shell .btn-warning:focus-visible {
        transform: translateY(-1px);
    }

    /* Primary */
    .account-page-shell .btn-primary:hover,
    .account-page-shell .btn-primary:focus-visible {
        background-color: #1f5fd1;
        border-color: #1f5fd1;
        box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    }

    .account-page-shell .btn-primary:active {
        transform: translateY(0);
        background-color: #1b55bc;
        border-color: #1b55bc;
        box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
    }

    /* Success */
    .account-page-shell .btn-success:hover,
    .account-page-shell .btn-success:focus-visible {
        background-color: #15803d;
        border-color: #15803d;
        box-shadow: 0 14px 28px rgba(22, 101, 52, 0.22);
    }

    .account-page-shell .btn-success:active {
        transform: translateY(0);
        background-color: #166534;
        border-color: #166534;
        box-shadow: 0 8px 16px rgba(22, 101, 52, 0.18);
    }

/* Warning */
.account-page-shell .btn-warning {
    background: #ffcf78;
    border-color: #ffcf78;
    color: #5f4300 !important;
}

    .account-page-shell .btn-warning:hover,
    .account-page-shell .btn-warning:focus-visible {
        background: #f4c45f;
        border-color: #f4c45f;
        color: #4e3900 !important;
        box-shadow: 0 14px 28px rgba(222, 189, 115, 0.26);
    }

    .account-page-shell .btn-warning:active {
        transform: translateY(0);
        background: #e8b74f;
        border-color: #e8b74f;
        color: #4e3900 !important;
        box-shadow: 0 8px 16px rgba(222, 189, 115, 0.18);
    }

/* Outline primary */
.account-page-shell .btn-outline-primary {
    color: #3266cc;
    border-color: #3266cc;
    background: #ffffff;
}

    .account-page-shell .btn-outline-primary:hover,
    .account-page-shell .btn-outline-primary:focus-visible {
        color: #ffffff;
        background: #3266cc;
        border-color: #3266cc;
        box-shadow: 0 12px 24px rgba(50, 102, 204, 0.18);
        transform: translateY(-1px);
    }

    .account-page-shell .btn-outline-primary:active {
        transform: translateY(0);
        color: #ffffff;
        background: #2857b8;
        border-color: #2857b8;
        box-shadow: 0 8px 16px rgba(50, 102, 204, 0.14);
    }

/* Outline secondary, if used */
.account-page-shell .btn-outline-secondary:hover,
.account-page-shell .btn-outline-secondary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(100, 116, 139, 0.14);
}

.account-password-requirements {
    background: #fafbfc;
    border: 1px solid #e8edf3;
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    height: 100%;
}

.account-password-requirements h4 {
    margin: 0 0 0.6rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: #1f2937;
}

.account-password-requirements ul {
    margin: 0;
    padding-left: 1.1rem;
}

.account-password-requirements li {
    color: #475569;
    line-height: 1.5;
}

.account-verification-code {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

.account-verification-code textarea {
    width: 3.25rem;
    height: 3.5rem;
    display: block;
    font-size: 2rem;
    text-align: center;
    border: 1px solid #e5d7aa;
    border-radius: 0.9rem;
    text-transform: uppercase;
    resize: none;
    overflow: hidden;
    background-color: #fffdf8;
    padding: 0;
    margin: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.account-verification-code textarea:focus {
    border-color: #debd73;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(222, 189, 115, 0.18);
}

.account-button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}

.account-button-group .left,
.account-button-group .right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.account-countdown {
    color: #64748b;
    font-size: 0.9rem;
}

.account-brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
}

.account-brand-name {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #212529;
}

.account-brand-subtitle {
    margin: 0.15rem 0 0;
    font-weight: 700;
    color: #64748b;
}

.account-status-page {
    text-align: center;
}

.account-status-page .ll-page-subtitle,
.account-status-page .account-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.account-inline-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.account-inline-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.account-login-shell {
    max-width: 680px;
    margin: 0 auto;
}

.account-card--padless {
    padding: 0 !important;
    overflow: hidden;
}

.account-page-shell .alert {
    border-radius: 1rem;
}

.account-page-shell code {
    font-size: 0.92em;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 0.08rem 0.35rem;
    border-radius: 0.45rem;
}

.account-login-partial-wrap {
    padding: 0;
}

.account-content-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-field-stack {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

#fireworksCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

@media (max-width: 991.98px) {
    .account-grid-2,
    .account-grid-3,
    .account-grid-4 {
        grid-template-columns: 1fr;
    }

    .ll-page-title,
    .account-title {
        font-size: 1.92rem;
    }

    .account-toolbar,
    .account-page-shell .ll-page-header {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .account-page-shell {
        margin-top: 1.4rem;
        padding: 0 0.85rem;
    }

    .account-page-shell .ll-page-header,
    .account-page-shell .ll-panel-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ll-page-title,
    .account-title {
        font-size: 1.68rem;
    }

    .account-verification-code {
        gap: 0.35rem;
    }

    .account-verification-code textarea {
        width: 2.6rem;
        height: 3rem;
        font-size: 1.55rem;
    }
}

@media (max-width: 575.98px) {
    .account-page-shell {
        padding: 0 0.7rem;
    }

    .account-page-shell .ll-page-header,
    .account-page-shell .ll-panel-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .account-verification-code textarea {
        width: 2.35rem;
        height: 2.75rem;
        font-size: 1.35rem;
    }
}
