.auth-title {
    max-width: 760px;
    padding-bottom: 2.5rem;
    padding-top: 2.5rem;
}

.auth-title p {
    margin: 1rem 0 0;
}

.auth-main {
    min-height: 55vh;
    padding: 3rem 0 4rem;
}

.auth-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(41, 32, 32, .1);
    margin: 0 auto;
    max-width: 560px;
    padding: clamp(1.4rem, 5vw, 2.5rem);
}

.auth-card h2 {
    font-size: 1.65rem;
    margin-bottom: .65rem;
}

.auth-card-intro {
    color: #666;
    margin-bottom: 1.5rem;
}

.auth-form {
    display: grid;
    gap: 1.1rem;
}

.auth-form .form-control:focus {
    border-color: #b32a2e;
    box-shadow: 0 0 0 .25rem rgba(213, 55, 59, .16);
}

.auth-primary {
    background: #bd2d32;
    border-color: #bd2d32;
    color: #fff;
}

.auth-primary:hover,
.auth-primary:focus {
    background: #982328;
    border-color: #982328;
    color: #fff;
}

.auth-alert {
    border-radius: 8px;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
}

.auth-alert-error {
    background: #fff0f0;
    border-left: 4px solid #bd2d32;
    color: #651a1d;
}

.auth-alert-success {
    background: #ecf7ef;
    border-left: 4px solid #39804d;
    color: #285b38;
}

.auth-help {
    color: #666;
    font-size: .87rem;
    overflow-wrap: anywhere;
}

.auth-secondary-action {
    border-top: 1px solid #e7e2e2;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    text-align: center;
}

.auth-secondary-action a {
    color: #982328;
    font-weight: 700;
}

.auth-honeypot {
    height: 0;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.auth-account-summary {
    background: #f7f5f5;
    border-radius: 10px;
    display: grid;
    gap: .35rem;
    margin-bottom: 2rem;
    padding: 1rem 1.2rem;
}

.auth-account-summary p {
    margin: 0;
}

.auth-admin-layout {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.auth-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.auth-admin-nav a {
    border-bottom: 2px solid transparent;
    color: #5d2729;
    padding: .4rem .2rem;
    text-decoration: none;
}

.auth-admin-nav a.active {
    border-color: #bd2d32;
    font-weight: 700;
}

.auth-card-wide {
    margin: 0;
    max-width: none;
    min-width: 0;
}

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

.auth-form-grid button,
.auth-form-grid fieldset {
    grid-column: 1 / -1;
}

.auth-fieldset {
    border: 1px solid #ded8d8;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    padding: 1rem;
}

.auth-fieldset legend {
    float: none;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    padding: 0 .35rem;
    width: auto;
}

.auth-section-heading,
.auth-user-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.auth-section-heading p,
.auth-user-header p {
    color: #666;
    margin: 0;
}

.auth-search,
.auth-filter-form {
    align-items: end;
    display: flex;
    gap: .75rem;
}

.auth-table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.auth-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.auth-table th,
.auth-table td {
    border-bottom: 1px solid #e7e2e2;
    padding: .85rem .7rem;
    text-align: left;
    vertical-align: top;
}

.auth-table td span {
    display: block;
    font-size: .88rem;
}

.auth-status {
    border-radius: 999px;
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    padding: .3rem .65rem;
}

.auth-status-active {
    background: #e7f5eb;
    color: #285b38;
}

.auth-status-approved {
    background: #e7f5eb;
    color: #285b38;
}

.auth-status-pending {
    background: #fff4d8;
    color: #72520a;
}

.auth-status-disabled {
    background: #eeeeee;
    color: #555;
}

.auth-status-rejected {
    background: #fff0f0;
    color: #651a1d;
}

.auth-request-list {
    display: grid;
    gap: 1rem;
}

.auth-request-item {
    border: 1px solid #e7e2e2;
    border-radius: 10px;
    padding: 1.25rem;
}

.auth-request-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.auth-request-heading h3 {
    font-size: 1.2rem;
    margin: 0;
}

.auth-request-heading p,
.auth-request-date {
    color: #666;
    font-size: .9rem;
    margin: .2rem 0 0;
}

.auth-request-item h4 {
    font-size: .9rem;
    margin: 1.2rem 0 .35rem;
}

.auth-request-justification {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.auth-request-actions {
    border-top: 1px solid #e7e2e2;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.auth-pagination {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

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

.auth-details dt {
    color: #666;
    font-size: .82rem;
}

.auth-details dd {
    margin: .2rem 0 0;
    overflow-wrap: anywhere;
}

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

.auth-admin-actions .auth-card {
    margin: 0;
}

.auth-action-link {
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    .auth-main {
        padding-top: 1.5rem;
    }

    .auth-primary {
        width: 100%;
    }

    .auth-form-grid,
    .auth-details,
    .auth-admin-actions,
    .auth-request-actions {
        grid-template-columns: 1fr;
    }

    .auth-section-heading,
    .auth-user-header,
    .auth-search,
    .auth-filter-form {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-filter-form > div,
    .auth-filter-form .btn,
    .auth-filter-form .form-select {
        max-width: 100%;
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .auth-admin-actions,
    .auth-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
