/* Common Auth/Profile Pages - Login / Register / ForgotPassword / Profile */

.auth-body {
    min-height: 100vh;
    background: #f8fbff;
}

.auth-wrap {
    min-height: 100vh;
    padding: 20px 24px 30px;
    background: radial-gradient(circle at top, #eef6ff 0, #f8fbff 42%, #f6f8fc 100%);
}

.auth-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-head {
    text-align: center;
    margin-bottom: 18px;
}

.auth-head .logo {
    width: 54px;
    height: 54px;
    font-size: 28px;
}

.auth-head h1 {
    font-size: 20px;
    font-weight: 900;
    margin: 12px 0 4px;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    min-height: auto;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .08);
}

.auth-card-compact {
    max-width: 440px;
}

.auth-card-wide {
    max-width: 720px;
}

.auth-card h2 {
    font-size: 21px;
    font-weight: 900;
    margin: 0 0 12px;
    text-align: center;
}

.auth-card p {
    line-height: 1.85;
}

.auth-card label,
.profile-panel label {
    font-weight: 800;
    margin-bottom: 7px;
}

.auth-card .form-control,
.auth-card .form-select,
.auth-card .input-group-text,
.auth-card .btn {
    min-height: 44px;
    border-radius: 12px;
}

.auth-card .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-card .input-group .input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.validation-summary ul {
    padding-right: 18px;
    margin-bottom: 12px;
}

.otp-input {
    font-size: 20px;
    letter-spacing: 4px;
    font-weight: 900;
}

.btn-link-inline {
    border: 0;
    background: transparent;
    color: #0d6efd;
    font-weight: 800;
    padding: 0;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-weight: 800;
}

.auth-feature-bar {
    max-width: 980px;
    margin: 22px auto 0;
}

.recover-btn {
    background: #7638d8;
    border-color: #7638d8;
    color: #fff;
}

.recover-btn:hover {
    background: #642bc2;
    border-color: #642bc2;
    color: #fff;
}

.recover-method {
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: none;
}

.recover-method i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #f0e9ff;
    color: #7638d8;
    font-size: 22px;
}

.logout-form {
    margin: 0;
}

.logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: right;
}

.logout-button:hover {
    background: #0874ff;
}

.profile-grid .panel {
    padding: 24px;
}

.profile-summary {
    padding: 28px 22px;
    text-align: center;
    position: sticky;
    top: 118px;
}

.profile-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8f2ff;
    color: #0d6efd;
    font-size: 44px;
    margin: 0 auto 16px;
}

.profile-summary h3 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 6px;
}

.profile-meta {
    display: grid;
    gap: 12px;
    text-align: right;
}

.profile-meta div {
    border: 1px solid #e5eaf3;
    border-radius: 14px;
    padding: 12px;
    background: #fbfdff;
}

.profile-meta span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 5px;
}

.profile-meta b {
    word-break: break-word;
}

.section-mini-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 18px;
}

.profile-status {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .profile-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .auth-wrap {
        padding: 14px;
    }

    .auth-top-actions .btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .auth-head h1 {
        font-size: 18px;
    }

    .auth-card {
        max-width: 100%;
        padding: 20px 16px;
        border-radius: 18px;
    }

    .auth-links {
        flex-direction: column;
        text-align: center;
    }

    .profile-status {
        width: 100%;
    }
}

.wide-card {
    max-width: 1180px;
}

.admin-users-table th {
    font-size: .86rem;
    color: #64748b;
    white-space: nowrap;
}

.admin-users-table td {
    font-size: .92rem;
    white-space: nowrap;
}
