html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row ::deep a, .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.fololo-brand {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
}

.verification-status-pending {
    color: #ff9800;
}

.verification-status-completed {
    color: #4caf50;
}

.verification-status-failed {
    color: #f44336;
}

.metric-card {
    transition: transform 0.2s ease-in-out;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Landing page styling */
.landing-hero {
    background: radial-gradient(circle at top left, #eef2ff 0%, #f8fafc 55%, #ffffff 100%);
    padding: 6rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/images/IrisShieldSmall.png") no-repeat right -40px top -40px;
    opacity: 0.08;
    pointer-events: none;
}

.landing-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.landing-eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    font-weight: 600;
    color: #4c51bf;
    margin-bottom: 1rem;
}

.landing-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.landing-subtitle {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.landing-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.landing-btn-primary {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.2);
}

.landing-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.25);
}

.landing-btn-secondary {
    border: 2px solid #4338ca;
    color: #4338ca;
    background: rgba(67, 56, 202, 0.05);
}

.landing-btn-secondary:hover {
    background: rgba(67, 56, 202, 0.12);
}

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

.landing-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.landing-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 0.35rem;
}

.landing-stat-label {
    font-size: 0.95rem;
    color: #475569;
}

.landing-card-section {
    padding: 4rem 1.5rem;
    background: #ffffff;
}

.landing-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.landing-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(79, 70, 229, 0.18);
}

.landing-card-icon {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.landing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.landing-card p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.98rem;
}

.landing-auth-cta {
    margin-top: 3rem;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.09), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(67, 56, 202, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.landing-auth-cta h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e1b4b;
}

.landing-auth-cta p {
    margin: 0;
    color: #312e81;
    font-size: 1rem;
}

.landing-auth-cta .landing-btns {
    margin-bottom: 0;
}

.btn, .btn-primary, .btn-outline-primary {
    font-family: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    color: #312e81;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25);
}

.btn-outline-primary {
    border-color: #4338ca;
    color: #4338ca !important;
    background: rgba(67, 56, 202, 0.05);
}

.btn-primary:hover {
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.3);
}

.btn-outline-primary:hover {
    background: rgba(67, 56, 202, 0.12);
}

.gap-2 {
    gap: 0.75rem;
}

.register-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: start;
}

.register-copy ul {
    margin: 1.5rem 0 0;
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.6;
}

.register-benefits li {
    margin-bottom: 0.6rem;
}

.register-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 2.25rem 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.register-card h2 {
    margin-top: 0;
    margin-bottom: 1.75rem;
    font-size: 1.5rem;
    color: #1e1b4b;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.form-group.checkbox {
    flex-direction: row;
    gap: 0.75rem;
    align-items: flex-start;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(67, 56, 202, 0.5);
}

.form-check-input:checked {
    background: linear-gradient(135deg, #4338ca, #6366f1);
}

.form-check-label {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.4;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(22, 163, 74, 0.25);
    color: #166534;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(220, 38, 38, 0.25);
    color: #b91c1c;
}

.text-danger {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.w-100 {
    width: 100%;
}

.register-footer {
    margin-top: 1.5rem;
    color: #475569;
    font-size: 0.95rem;
}

.register-footer a {
    color: #4338ca;
    font-weight: 600;
    text-decoration: none;
}

.register-footer a:hover {
    text-decoration: underline;
}

.register-divider {
    border: none;
    border-top: 1px dashed rgba(148, 163, 184, 0.6);
    margin: 0.75rem 0 0.5rem;
}

.dashboard-hero {
    padding: 3rem 0 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(14, 165, 233, 0.08));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.dashboard-hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #1e1b4b;
}

.dashboard-subtitle {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: #475569;
    font-size: 1rem;
    max-width: 520px;
}

.dashboard-cta {
    padding-inline: 1.5rem;
}

.dashboard-stats {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.14);
}

.dashboard-card-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18rem;
    color: #6366f1;
    margin-bottom: 0.75rem;
}

.dashboard-card-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.dashboard-card-value--success {
    color: #16a34a;
}

.dashboard-card-suffix {
    font-size: 1.1rem;
    color: #475569;
}

.dashboard-card-context {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

.portal-footer {
    background-color: #f8f9fa;
}

.portal-footer-copy {
    color: #495057;
}

.portal-footer a {
    text-decoration: none;
}

.portal-footer a:hover {
    text-decoration: underline;
}

.portal-footer a:focus,
.portal-footer a:active {
    text-decoration: underline;
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 4.5rem 1.25rem 4rem;
    }

    .landing-card {
        padding: 1.75rem;
    }

    .landing-auth-cta {
        padding: 2.5rem 1.75rem;
    }

    .dashboard-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-cta {
        width: 100%;
        justify-content: center;
    }
}
