body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f5fbfd 0%, #edf6f9 48%, #f7fafc 100%);
}

body:is(.auth-page-prime, .auth-page-province) {
    background:
        radial-gradient(circle at 18% 18%, rgba(29, 127, 157, 0.22), transparent 24rem),
        radial-gradient(circle at 84% 12%, rgba(11, 70, 88, 0.18), transparent 22rem),
        linear-gradient(145deg, #eaf2f6 0%, #f8fbfd 46%, #edf3f7 100%);
    display: flex;
    flex-direction: column;
}

.auth-page {
    align-items: center;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 2.25rem);
    padding: 2rem 0 1rem;
}

.auth-page > .row {
    width: 100%;
}

body:is(.auth-page-prime, .auth-page-province) footer {
    flex-shrink: 0;
}

.auth-shell {
    margin: 0 auto;
    max-width: 760px;
}

.auth-logo-wrap {
    border-radius: 1.5rem;
    isolation: isolate;
    margin: 0 auto 1.25rem;
    padding: 0.9rem 1.05rem;
    position: relative;
    text-align: center;
    width: fit-content;
}

.auth-logo-wrap::before {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 255, 255, 0) 78%);
    content: "";
    filter: blur(1.1rem);
    inset: 1.4rem 10% 1rem;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.auth-logo-wrap::after {
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.56) 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: inherit;
    box-shadow:
        0 1.1rem 2rem rgba(122, 146, 175, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    content: "";
    inset: 0;
    position: absolute;
    -webkit-backdrop-filter: blur(18px);
    z-index: 0;
}

.auth-logo {
    display: block;
    height: auto;
    max-width: 360px;
    position: relative;
    width: 100%;
    z-index: 1;
    -webkit-mask-image: radial-gradient(circle at center, #000 70%, rgba(0, 0, 0, 0.94) 82%, rgba(0, 0, 0, 0.5) 92%, transparent 100%);
    mask-image: radial-gradient(circle at center, #000 70%, rgba(0, 0, 0, 0.94) 82%, rgba(0, 0, 0, 0.5) 92%, transparent 100%);
}

.auth-card {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.28);
    border-radius: 1rem;
    box-shadow: 0 0.45rem 1.2rem rgba(var(--bs-primary-rgb), 0.12);
    overflow: hidden;
}

.auth-card .card-header {
    background: var(--gps-primary-gradient);
    border-bottom: 1px solid var(--gps-primary);
    padding: 0.75rem 1rem;
}

body:is(.auth-page-prime, .auth-page-province) .auth-card {
    border-color: rgba(11, 70, 88, 0.2);
    box-shadow: 0 1rem 2.4rem rgba(11, 70, 88, 0.14);
}

body:is(.auth-page-prime, .auth-page-province) .auth-card .card-header {
    background: linear-gradient(135deg, #0b3548 0%, #126b85 64%, #70a8bd 100%);
}

body:is(.auth-page-prime, .auth-page-province) .auth-logo-wrap {
    border-color: rgba(91, 126, 169, 0.18);
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
}

body:is(.auth-page-prime, .auth-page-province) .auth-logo-wrap::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 250, 255, 0.58) 100%);
    border-color: rgba(151, 182, 219, 0.38);
    box-shadow:
        0 1.25rem 2.4rem rgba(53, 95, 152, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body:is(.auth-page-prime, .auth-page-province) .auth-logo {
    filter: drop-shadow(0 0.75rem 1.25rem rgba(11, 70, 88, 0.12));
    max-width: 420px;
}

.auth-card .card-header-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.auth-switch-link {
    align-items: center;
    color: var(--gps-primary);
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch-link:hover,
.auth-switch-link:focus {
    color: var(--gps-primary-dark);
}

.auth-switch-link p {
    margin: 0;
}

.auth-card .card-body {
    padding: 1.25rem;
}

.auth-card .form-control:focus {
    border-color: var(--gps-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
}

.auth-section-divider {
    border-top-color: rgba(91, 108, 134, 0.18);
    opacity: 1;
}

.auth-provider-btn {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}

.auth-provider-btn svg {
    display: block;
    height: auto;
    max-width: 100%;
}

.fil0:hover {
    fill: #4b4b4b;
}

.fnt0 {
    font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
    font-size: 200px;
    text-decoration: none;
}

.auth-help {
    margin-top: 1rem;
    text-align: center;
}

.auth-help a {
    color: var(--gps-primary);
}

.auth-help a:hover,
.auth-help a:focus {
    color: var(--gps-primary-dark);
}

@media (max-width: 767.98px) {
    .auth-page {
        padding-top: 1rem;
    }

    .auth-card .card-body {
        padding: 1rem;
    }

    .auth-logo {
        max-width: 270px;
    }
}

body[data-theme="gps-dark"]:is(.auth-page-prime, .auth-page-province) .auth-logo-wrap::after {
    background:
        radial-gradient(circle at center, rgba(79, 156, 255, 0.14) 0%, rgba(79, 156, 255, 0.05) 58%, transparent 100%),
        linear-gradient(180deg, rgba(13, 24, 41, 0.86), rgba(7, 13, 24, 0.78)) !important;
    border-color: rgba(125, 182, 255, 0.28) !important;
    box-shadow:
        0 1.2rem 2.4rem rgba(1, 6, 16, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body[data-theme="gps-dark"]:is(.auth-page-prime, .auth-page-province) .auth-logo-wrap::before {
    background: radial-gradient(circle at center, rgba(130, 184, 255, 0.3) 0%, rgba(130, 184, 255, 0.16) 42%, rgba(130, 184, 255, 0) 78%) !important;
}

body[data-theme="gps-dark"]:is(.auth-page-prime, .auth-page-province) img.auth-logo[src$="gps.png"] {
    filter:
        invert(1)
        hue-rotate(180deg)
        saturate(1.25)
        brightness(1.08)
        contrast(0.98)
        drop-shadow(0 0.9rem 1.6rem rgba(1, 6, 16, 0.36));
    mix-blend-mode: screen;
}
