@layer base, app;
@import url("app-a4c91d542f77734af2d1f4476a4a731c.css") layer(base);

@layer app {

    .login-page {
        background: linear-gradient(135deg, #f5f9fa 0%, var(--color-background) 100%);
    }

    .login-wrapper {
        display: grid;
        place-items: center;
        min-height: 100vh;
        padding: 24px;
    }

    .login-card {
        width: min(100%, 420px);
        padding: 34px;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 8px;
        box-shadow: 0 18px 50px rgba(6, 29, 40, 0.14);
    }

    .login-header {
        margin-bottom: 28px;
        text-align: center;
    }

    .login-logo {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin: 0 auto 18px;
        color: var(--color-surface);
        font-weight: 700;
        background: var(--color-primary);
        border-radius: 8px;
    }

    .login-header h1 {
        margin: 0;
        color: var(--color-crescendo-blue-dark);
        font-size: 1.9rem;
        line-height: 1.1;
    }

    .login-header p {
        margin: 10px 0 0;
        color: var(--color-text-muted);
    }

    .login-field {
        display: grid;
        gap: 8px;
        margin-bottom: 18px;
    }

    .login-field label {
        color: var(--color-crescendo-blue-dark);
        font-size: 0.9rem;
        font-weight: 650;
    }

    .login-field input {
        width: 100%;
        min-height: 52px;
        padding: 13px 15px;
        color: var(--color-text);
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 8px;
        outline: none;
        transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .login-field input::placeholder {
        color: var(--color-crescendo-concrete-light);
    }

    .login-field input:focus {
        background: var(--color-surface);
        border-color: var(--color-crescendo-cyan);
        box-shadow: 0 0 0 4px var(--color-focus);
    }

    .login-checkbox {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 2px 0 0;
        color: var(--color-text-muted);
        font-size: 0.94rem;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
    }

    .login-checkbox input {
        display: grid;
        place-content: center;
        width: 20px;
        height: 20px;
        margin: 0;
        flex: 0 0 20px;
        appearance: none;
        color: var(--color-surface);
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 6px;
        cursor: pointer;
        transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }

    .login-checkbox input::before {
        width: 10px;
        height: 10px;
        content: "";
        background: currentColor;
        clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 18%, 84% 4%, 38% 67%);
        transform: scale(0);
        transition: transform 140ms ease;
    }

    .login-checkbox input:checked {
        background: var(--color-primary);
        border-color: var(--color-primary);
    }

    .login-checkbox input:checked::before {
        transform: scale(1);
    }

    .login-checkbox input:focus-visible {
        outline: none;
        border-color: var(--color-crescendo-cyan);
        box-shadow: 0 0 0 4px var(--color-focus);
    }

    .login-checkbox:hover {
        color: var(--color-crescendo-blue-dark);
    }

    .login-checkbox:hover input {
        border-color: var(--color-crescendo-cyan);
    }

    .login-options {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 2px;
    }

    .login-submit {
        width: 100%;
        min-height: 54px;
        margin-top: 20px;
        color: var(--color-surface);
        font-weight: 700;
        background: var(--color-primary);
        border: 0;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 16px 32px rgba(6, 29, 40, 0.22);
        transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .login-submit:hover {
        background: var(--color-primary-hover);
        box-shadow: 0 20px 38px rgba(6, 29, 40, 0.28);
        transform: translateY(-1px);
    }

    .login-submit:focus-visible {
        outline: 3px solid var(--color-focus);
        outline-offset: 3px;
    }

    .login-alert,
    .login-session {
        margin-bottom: 18px;
        padding: 14px 16px;
        border-radius: 8px;
        font-size: 0.94rem;
    }

    .login-alert {
        color: #7d1f1a;
        background: #fff1ee;
        border: 1px solid #f0c8c1;
    }

    .login-session {
        color: var(--color-crescendo-blue-dark);
        background: #eef7fa;
        border: 1px solid #cce8f0;
    }

    .login-session a {
        color: var(--color-crescendo-blue);
        font-weight: 700;
    }




    .login-link {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        color: var(--color-crescendo-blue);
        font-weight: 700;
        text-decoration: none;
    }

    .login-link:hover {
        text-decoration: underline;
    }

    .login-link-inline {
        color: var(--color-crescendo-blue);
        font-size: 0.94rem;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

    .login-link-inline:hover {
        text-decoration: underline;
    }

    .login-link-spaced {
        margin-top: 18px;
    }

    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        align-items: stretch;
    }

    .dashboard-card {
        min-width: 0;
        padding: 22px;
        background: var(--card-bg);
        border: 1px solid var(--card-border-color);
        border-radius: 8px;
        box-shadow: 0 12px 32px rgba(6, 29, 40, 0.08);
    }

    .dashboard-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

    .dashboard-card-header h2 {
        margin: 0;
        color: var(--color-crescendo-blue-dark);
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .dashboard-card-header p {
        margin: 5px 0 0;
        color: var(--color-text-muted);
        font-size: 0.9rem;
    }

    .dashboard-card-total {
        color: var(--color-crescendo-blue-dark);
        font-size: 1.45rem;
        font-weight: 750;
        line-height: 1;
        white-space: nowrap;
    }

    .dashboard-chart {
        position: relative;
        height: 260px;
    }

    .dashboard-status-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 18px;
    }

    .dashboard-status-grid > div,
    .dashboard-objective-list > div {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 2px 8px;
        padding: 14px;
        background: var(--card-bg-emphasis);
        border: 1px solid var(--color-border);
        border-radius: 8px;
    }

    .dashboard-status-grid span,
    .dashboard-objective-list span,
    .dashboard-kpi-main span {
        color: var(--color-text-muted);
        font-size: 0.85rem;
        font-weight: 650;
    }

    .dashboard-status-grid strong,
    .dashboard-objective-list strong {
        grid-column: 2;
        color: var(--color-crescendo-blue-dark);
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .dashboard-dot {
        width: 10px;
        height: 10px;
        margin-top: 5px;
        border-radius: 50%;
    }

    .dashboard-dot-registered {
        background: var(--color-crescendo-cyan);
    }

    .dashboard-dot-unregistered {
        background: var(--color-crescendo-yellow);
    }

    .dashboard-kpi-main {
        display: grid;
        gap: 6px;
        margin-bottom: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--color-border);
    }

    .dashboard-kpi-main strong {
        color: var(--color-crescendo-blue-dark);
        font-size: clamp(2rem, 4vw, 3rem);
        line-height: 1.05;
    }

    .dashboard-objective-list {
        display: grid;
        gap: 12px;
    }

    @media (max-width: 520px) {
        .login-card {
            padding: 26px;
        }

        .login-header h1 {
            font-size: 1.7rem;
        }

        .login-field input,
        .login-submit {
            min-height: 50px;
        }

        .login-options {
            align-items: flex-start;
            flex-direction: column;
            gap: 12px;
        }
    }

    @media (max-width: 900px) {
        .dashboard-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 560px) {
        .dashboard-card {
            padding: 18px;
        }

        .dashboard-card-header {
            align-items: flex-start;
            flex-direction: column;
        }

        .dashboard-status-grid {
            grid-template-columns: 1fr;
        }

        .dashboard-chart {
            height: 220px;
        }
    }
}
