body {
    background: #f4f8fc;
    font-family: "Roboto", Arial, sans-serif;
    color: #071b3a;
}

main.m-b-1 {
    margin-bottom: 0 !important;
}

.auth-page {
    padding: 15px 0 25px;
    background:
        radial-gradient(circle at top left, rgba(0, 114, 184, 0.10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(0, 114, 184, 0.08), transparent 32%),
        #f4f8fc;
}

.auth-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 25px 64px 32px;
    background: #ffffff;
    border: 1px solid #e3edf8;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(7, 27, 58, 0.10);
}

.auth-hero {
    max-width: 720px;
    margin: 0 auto 10px;
}

.auth-shield {
    width: 50px;
    height: 50px;
    margin: 0 auto 5px;
    border: 2px solid #0b66d8;
    border-radius: 22px 22px 28px 28px;
    color: #0b66d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.auth-hero h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: #071b3a;
}

.auth-hero p {
    max-width: 560px;
    margin: 1px auto 0;
    font-size: 15px;
    line-height: 1.45;
    color: #3f5574;
}

.auth-primary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 36px;
    border: 1px solid #a9cdf8;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7fbff, #f6f9fd);
    box-shadow: 0 12px 30px rgba(11, 102, 216, 0.08);
}

.auth-primary-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.auth-mic-icon {
    width: 112px;
    height: 112px;
    min-width: 112px;
    border-radius: 22px;
    background: #f3f9ff;
    border: 1px solid #d8e9fb;
    box-shadow: 0 8px 20px rgba(7, 27, 58, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-mic-icon img {
    max-width: 78px;
    max-height: 78px;
}

.auth-primary-card h2 {
    margin: 0 0 6px;
    font-size: 27px;
    font-weight: 700;
    color: #071b3a;
}

.auth-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 9px;
    background: #dcebff;
    color: #075bd4;
    font-size: 14px;
    font-weight: 600;
}

.auth-primary-card p {
    margin: 0;
    max-width: 440px;
    color: #405878;
    font-size: 16px;
    line-height: 1.45;
}

.auth-main-button {
    min-width: 190px;
    padding: 18px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #075bd4, #004bc1);
    color: #ffffff !important;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 12px 22px rgba(0, 75, 193, 0.22);
}

.auth-main-button i {
    margin-left: 14px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 15px 0 1px;
    color: #405878;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d7e3f1;
}

.auth-provider-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.auth-provider-card {
    width: 220px;
    min-height: 220px;
    padding: 28px 18px 22px;
    border: 1px solid #e1e9f3;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
    color: #071b3a;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(7, 27, 58, 0.07);
    transition: all 0.18s ease;
}

.auth-provider-card:hover,
.auth-provider-card:focus {
    transform: translateY(-3px);
    border-color: #a9cdf8;
    box-shadow: 0 16px 34px rgba(7, 27, 58, 0.12);
}

.auth-provider-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-provider-icon i {
    font-size: 36px;
}

.auth-provider-icon.blue {
    background: #e8f4ff;
    color: #1684e8;
}

.auth-provider-icon.green {
    background: #e5f8f3;
    color: #12a889;
}

.auth-provider-icon.purple {
    background: #eeeafe;
    color: #6046d6;
}

.auth-provider-icon.cyan {
    background: #e8f7ff;
    color: #168fd1;
}

.auth-provider-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
}

.auth-provider-card p {
    min-height: 45px;
    margin: 0 0 13px;
    color: #455d7d;
    font-size: 13px;
    line-height: 1.35;
}

.auth-arrow {
    color: #075bd4;
    font-size: 28px;
    font-weight: 700;
}

.auth-institutional-card {
    margin-top: 28px;
    padding: 26px 32px;
    border: 1px solid #cfdcff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7f5ff, #ffffff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-institutional-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.auth-institutional-icon {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 50%;
    border: 1px solid #d7d0ff;
    background: #f8f6ff;
    color: #6046d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.auth-institutional-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.auth-institutional-card h3 span {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #e9e3ff;
    color: #4d33c8;
    font-size: 13px;
    vertical-align: middle;
}

.auth-institutional-card p {
    margin: 0 0 6px;
    color: #405878;
    font-size: 16px;
}

.auth-institutional-card small {
    color: #3f2ed0;
    font-size: 14px;
}

.auth-secondary-button {
    min-width: 160px;
    padding: 14px 22px;
    border: 1px solid #075bd4;
    border-radius: 10px;
    background: #ffffff;
    color: #075bd4 !important;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
}

.auth-secondary-button i {
    margin-right: 8px;
}

.auth-help-card {
    margin-top: 26px;
    padding: 22px 28px;
    border: 1px solid #e1e9f3;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-help-card > div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-help-card i.fa-headphones {
    color: #075bd4;
    font-size: 38px;
}

.auth-help-card h4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.auth-help-card p {
    margin: 0;
    color: #526987;
}

.auth-help-card a {
    color: #075bd4;
    font-weight: 700;
    text-decoration: none;
}

.auth-mockup-label {
    margin: 28px 0 0;
    text-align: center;
    color: #8a9ab1;
    font-size: 13px;
    letter-spacing: 0.08em;
}

@media (max-width: 991px) {
    .auth-shell {
        padding: 36px 28px;
    }

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

    .auth-primary-card,
    .auth-institutional-card {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-main-button,
    .auth-secondary-button {
        width: 100%;
    }
}

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

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

    .auth-hero h1 {
        font-size: 30px;
    }

    .auth-hero p {
        font-size: 16px;
    }

    .auth-primary-left,
    .auth-institutional-left {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .auth-help-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}
.auth-layout {
    min-height: 100vh;
    background: #f4f8fc;
}

.auth-main {
    background: #f4f8fc;
}

.auth-header {
    background: #031536;
    box-shadow: 0 2px 14px rgba(3, 21, 54, 0.22);
}

.auth-navbar {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #031536;
    min-height: 86px;
}

.auth-header-container {
    max-width: 1280px;
    min-height: 86px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-brand img {
    height: 54px;
    width: auto;
    display: block;
}

.auth-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-env-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 500;
}

.auth-env-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #20d66b;
}

.auth-env-separator {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.35);
}

.auth-header-link,
.auth-user-toggle {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
}

.auth-footer {
    background: #031536;
    color: #ffffff;
}

.auth-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.auth-footer-block {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-footer-icon {
    width: 54px;
    height: 54px;
    border: 2px solid #0b66d8;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b66d8;
    font-size: 24px;
}

.auth-footer h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.auth-footer p {
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.45;
}

.auth-footer-brand {
    text-align: right;
}

.auth-footer-brand img {
    height: 54px;
    width: auto;
}

@media (max-width: 768px) {
    .auth-header-container {
        padding: 0 18px;
    }

    .auth-env-badge {
        display: none;
    }

    .auth-brand img {
        height: 46px;
    }

    .auth-footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .auth-footer-brand {
        text-align: left;
    }
}

.auth-apps-shell {
    max-width: 1040px;
}

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

.auth-app-card {
    position: relative;
    min-height: 180px;
    padding: 28px;
    border: 1px solid #e1e9f3;
    border-radius: 16px;
    background: #ffffff;
    color: #071b3a;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(7, 27, 58, 0.07);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.18s ease;
}

.auth-app-card:hover,
.auth-app-card:focus {
    transform: translateY(-3px);
    border-color: #a9cdf8;
    box-shadow: 0 16px 34px rgba(7, 27, 58, 0.12);
}

.auth-app-logo {
    width: 150px;
    height: 110px;
    min-width: 150px;
    border-radius: 14px;
    background: #f7fbff;
    border: 1px solid #e1e9f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-app-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

.auth-app-logo i {
    font-size: 42px;
    color: #075bd4;
}

.auth-app-content h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #071b3a;
}

.auth-app-content p {
    margin: 0;
    color: #526987;
    font-size: 16px;
}

.auth-app-arrow {
    margin-left: auto;
    color: #075bd4;
    font-size: 30px;
}

.auth-empty-state {
    padding: 42px 28px;
    border: 1px solid #e1e9f3;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
}

.auth-empty-state i {
    font-size: 42px;
    color: #f0ad4e;
    margin-bottom: 14px;
}

.auth-empty-state h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.auth-empty-state p {
    margin: 0;
    color: #526987;
}

@media (max-width: 768px) {
    .auth-apps-grid {
        grid-template-columns: 1fr;
    }

    .auth-app-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-app-logo {
        width: 100%;
    }

    .auth-app-arrow {
        margin-left: 0;
    }
}

.auth-consent-shell {
    max-width: 900px;
}

.auth-consent-card {
    background: #ffffff;
    border: 1px solid #e1e9f3;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 10px 24px rgba(7,27,58,.08);
}

.auth-client-info {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8eef7;
}

.auth-client-icon {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: #eef6ff;
    color: #075bd4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.auth-client-info h2 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
}

.auth-client-info p {
    margin: 0;
    color: #526987;
}

.auth-scopes {
    margin-top: 28px;
}

.auth-scopes h3 {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 700;
}

.auth-scope-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e8eef7;
    border-radius: 12px;
    background: #fafcff;
}

.auth-scope-icon {
    color: #20b15a;
    font-size: 22px;
    min-width: 24px;
}

.auth-scope-item strong {
    display: block;
    margin-bottom: 4px;
}

.auth-scope-item p {
    margin: 0;
    color: #526987;
}

.auth-consent-form {
    margin-top: 30px;
}

.auth-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.auth-deny-btn {
    border: 1px solid #dc3545;
    background: #ffffff;
    color: #dc3545;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
}

.auth-allow-btn {
    border: none;
    background: #0b66d8;
    color: white;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(11,102,216,.25);
}

.admin-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #031536;
    border-radius: 14px;
    padding: 14px 22px;
    margin-bottom: 24px;
}

.admin-logo-wrapper img {
    max-width: 220px;
    height: auto;
    margin: 0;
}

.auth-provider-grid-standalone {
    margin-top: 28px;
}

@media (max-width: 1440px) and (min-width: 992px) {

    .auth-page {
        padding: 8px 0 12px;
    }

    .auth-shell {
        max-width: 980px;
        padding: 18px 40px 24px;
    }

    .auth-hero {
        margin-bottom: 6px;
    }

    .auth-shield {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .auth-hero h1 {
        font-size: 24px;
    }

    .auth-hero p {
        font-size: 13px;
    }

    .auth-primary-card {
        padding: 18px 24px;
    }

    .auth-mic-icon {
        width: 82px;
        height: 82px;
        min-width: 82px;
    }

    .auth-mic-icon img {
        max-width: 56px;
        max-height: 56px;
    }

    .auth-primary-card h2 {
        font-size: 22px;
    }

    .auth-primary-card p {
        font-size: 14px;
    }

    .auth-main-button {
        min-width: 160px;
        padding: 14px 22px;
        font-size: 16px;
    }

    .auth-divider {
        margin: 10px 0 4px;
        font-size: 14px;
    }

    .auth-provider-grid {
        gap: 16px;
    }

    .auth-provider-card {
        min-height: 180px;
        width: 210px;
        padding: 18px 12px;
    }

    .auth-provider-icon {
        width: 58px;
        height: 58px;
    }

    .auth-provider-icon i {
        font-size: 28px;
    }

    .auth-provider-card h3 {
        font-size: 16px;
    }

    .auth-provider-card p {
        font-size: 12px;
        min-height: 34px;
    }

    .auth-arrow {
        font-size: 22px;
    }

    .auth-institutional-card {
        margin-top: 18px;
        padding: 18px 24px;
    }

    .auth-institutional-icon {
        width: 62px;
        height: 62px;
        min-width: 62px;
        font-size: 28px;
    }

    .auth-institutional-card h3 {
        font-size: 19px;
    }

    .auth-institutional-card p {
        font-size: 14px;
    }

    .auth-secondary-button {
        font-size: 15px;
        padding: 12px 18px;
    }
}
@media (max-height: 800px) and (min-width: 992px) {

    .auth-page {
        padding: 4px 0 8px;
    }

    .auth-shell {
        padding-top: 12px;
        padding-bottom: 16px;
    }

    .auth-provider-card {
        min-height: 160px;
        width: 210px;
    }

    .auth-institutional-card {
        margin-top: 12px;
    }
}
