.auth-page {
    align-items: center;
    background:
        radial-gradient(circle at 14% 16%, rgba(232, 138, 45, .16), transparent 29%),
        radial-gradient(circle at 92% 12%, rgba(25, 66, 128, .12), transparent 28%),
        linear-gradient(135deg, #fbfcff 0%, #f3f6fb 100%);
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 34px 16px;
}

.auth-shell {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(214, 221, 234, .9);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .16);
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(340px, 1fr);
    max-width: 1060px;
    overflow: hidden;
    width: 100%;
}

.auth-shell-wide {
    max-width: 1160px;
}

.auth-brand-panel {
    background:
        linear-gradient(160deg, rgba(17, 24, 39, .96), rgba(33, 43, 65, .95)),
        #111827;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: space-between;
    min-height: 560px;
    padding: 42px;
    position: relative;
}

.auth-brand-panel::after {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(150deg, rgba(0, 0, 0, .8), transparent 72%);
    pointer-events: none;
    position: absolute;
}

.auth-brand-panel > * {
    position: relative;
    z-index: 1;
}

.auth-brand-mark {
    align-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    display: inline-flex;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.auth-brand-mark img {
    height: 40px;
    width: 40px;
}

.auth-kicker {
    color: #e88a2d;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-brand-panel h1,
.auth-form-heading h2 {
    letter-spacing: 0;
    margin: 0;
}

.auth-brand-panel h1 {
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 900;
    line-height: 1;
    margin-top: 10px;
}

.auth-brand-panel p {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.65;
    margin: 16px 0 0;
    max-width: 410px;
}

.auth-metrics,
.auth-checklist {
    display: grid;
    gap: 12px;
}

.auth-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-metrics div,
.auth-checklist div {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    padding: 14px;
}

.auth-metrics strong {
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.auth-metrics span,
.auth-checklist span {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.auth-checklist div {
    align-items: center;
    display: flex;
    gap: 12px;
}

.auth-checklist i {
    align-items: center;
    background: rgba(232, 138, 45, .18);
    border-radius: 12px;
    color: #ffb55c;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.auth-form-panel {
    background: rgba(255, 255, 255, .96);
    padding: 44px;
}

.auth-form-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
}

.auth-icon {
    align-items: center;
    background: #fff4e8;
    border-radius: 16px;
    color: #cf7720;
    display: inline-flex;
    flex: 0 0 auto;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.auth-form-heading h2 {
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    margin-top: 3px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

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

.auth-field.form-floating > .form-control {
    background: #f8fafc;
    border: 1px solid #dce3ee;
    border-radius: 14px;
    color: #111827;
    min-height: 58px;
    padding-left: 16px;
}

.auth-field.form-floating > .form-control:focus {
    background: #ffffff;
    border-color: #e88a2d;
    box-shadow: 0 0 0 4px rgba(232, 138, 45, .13) !important;
}

.auth-field.form-floating > label {
    align-items: center;
    color: #667085;
    display: flex;
    gap: 8px;
    padding-left: 16px;
}

.auth-field .invalid-feedback {
    margin-left: 4px;
}

.auth-alert,
.auth-attempts {
    align-items: flex-start;
    border-radius: 14px;
    display: flex;
    gap: 10px;
    line-height: 1.45;
    padding: 12px 14px;
}

.auth-alert-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    margin-bottom: 16px;
}

.auth-alert-success {
    background: #ecfdf3;
    border: 1px solid #b7e4c7;
    color: #14532d;
    margin-bottom: 16px;
}

.auth-attempts {
    background: #fff8e6;
    border: 1px solid #ffd88a;
    color: #7a4b00;
    font-size: 13px;
}

.auth-submit,
.auth-secondary {
    border-radius: 999px;
    font-weight: 850;
    min-height: 46px;
    padding: 11px 18px;
}

.auth-submit {
    background: linear-gradient(135deg, #e88a2d 0%, #c86b1a 100%);
    box-shadow: 0 14px 26px rgba(232, 138, 45, .28);
    color: #ffffff;
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #f09640 0%, #b95f14 100%);
    color: #ffffff;
}

.auth-secondary {
    background: #f3f6fb;
    border: 1px solid #dce3ee;
    color: #344054;
}

.auth-secondary:hover,
.auth-secondary:focus {
    background: #e9eef7;
    color: #111827;
}

.auth-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}

.auth-actions .auth-secondary:first-child {
    margin-right: auto;
}

.auth-switch {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 8px;
    justify-content: center;
    margin-top: 2px;
}

.auth-switch a {
    color: #c86b1a;
    font-weight: 850;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #9a4d0e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 991.98px) {
    .auth-shell,
    .auth-shell-wide {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 30px;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 16px 0;
    }

    .auth-shell {
        border-radius: 18px;
    }

    .auth-brand-panel,
    .auth-form-panel {
        padding: 24px 18px;
    }

    .auth-metrics,
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-form-heading h2 {
        font-size: 24px;
    }

    .auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-actions .auth-secondary:first-child {
        margin-right: 0;
    }

    .auth-actions .btn,
    .auth-submit {
        width: 100%;
    }
}

.users-page {
    background:
        radial-gradient(circle at 10% 8%, rgba(232, 138, 45, .12), transparent 28%),
        linear-gradient(135deg, #fbfcff 0%, #f3f6fb 100%);
    min-height: calc(100vh - 150px);
    padding: 34px 16px;
}

.users-shell {
    margin: 0 auto;
    max-width: 1240px;
}

.users-hero,
.users-table-panel {
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dce3ee;
    box-shadow: 0 20px 54px rgba(15, 23, 42, .1);
}

.users-hero {
    align-items: center;
    border-radius: 22px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 24px 26px;
}

.users-hero h1 {
    color: #111827;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 4px 0;
}

.users-hero p {
    color: #667085;
    margin: 0;
}

.users-table-panel {
    border-radius: 20px;
    overflow: hidden;
    padding: 10px;
}

.users-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 0;
}

.users-table thead th {
    border: 0;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 14px;
    text-transform: uppercase;
}

.users-table tbody td {
    background: #ffffff;
    border-bottom: 1px solid #edf0f5;
    border-top: 1px solid #edf0f5;
    padding: 14px;
    vertical-align: middle;
}

.users-table tbody td:first-child {
    border-left: 1px solid #edf0f5;
    border-radius: 14px 0 0 14px;
}

.users-table tbody td:last-child {
    border-radius: 0 14px 14px 0;
    border-right: 1px solid #edf0f5;
}

.user-profile {
    align-items: center;
    display: flex;
    gap: 12px;
}

.user-avatar {
    align-items: center;
    background: #111827;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.user-name {
    color: #111827;
    font-weight: 850;
}

.user-subtle,
.user-date {
    color: #667085;
    font-size: 13px;
}

.user-id,
.user-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    padding: 6px 10px;
}

.user-id {
    background: #f3f4f6;
    color: #344054;
}

.user-pill {
    background: #fff4e8;
    color: #9a4d0e;
}

.user-email {
    color: #3451b2;
    font-weight: 700;
    text-decoration: none;
}

.user-email:hover {
    color: #1d3a8a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.users-empty {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #667085;
    padding: 34px 20px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .users-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 20px;
    }

    .users-hero .btn {
        width: 100%;
    }

    .users-table thead {
        display: none;
    }

    .users-table,
    .users-table tbody,
    .users-table tr,
    .users-table td {
        display: block;
        width: 100%;
    }

    .users-table tbody td {
        border-left: 1px solid #edf0f5;
        border-right: 1px solid #edf0f5;
    }

    .users-table tbody td:first-child {
        border-radius: 14px 14px 0 0;
    }

    .users-table tbody td:last-child {
        border-radius: 0 0 14px 14px;
        text-align: left !important;
    }
}
