:root {
    --auth-ink: #0f172a;
    --auth-muted: #53657d;
    --auth-blue: #1d7ddb;
    --auth-teal: #269c98;
    --auth-border: rgba(255, 255, 255, .34);
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 18% 16%, rgba(29, 125, 219, .16), transparent 32%),
        radial-gradient(circle at 82% 70%, rgba(38, 156, 152, .16), transparent 30%),
        #eef4f9;
    color: var(--auth-ink);
}

.login-shell,
.safe-shell {
    width: 100%;
    max-width: 432px;
}

.auth-brand,
.safe-shell > .mb-3 {
    padding-left: 2px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #0d6efd;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(13, 110, 253, .25);
}

.auth-muted,
.auth-page .text-muted {
    color: var(--auth-muted) !important;
}

.login-card,
.safe-card {
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(36, 133, 205, .92), rgba(38, 157, 151, .90)),
        #2388c8;
    box-shadow: 0 22px 68px rgba(15, 23, 42, .20);
    color: #fff;
    overflow: hidden;
    position: relative;
    animation: authPopupIn .28s ease-out both;
}

.login-card::before,
.safe-card::before {
    content: "";
    position: absolute;
    width: 72%;
    height: 58%;
    right: -20%;
    top: -18%;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 16px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.login-card::after,
.safe-card::after {
    content: "";
    position: absolute;
    inset: auto -12% -36% 20%;
    height: 52%;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 16px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.login-card .card-body,
.safe-card .card-body {
    position: relative;
    z-index: 1;
}

.auth-page .form-label,
.auth-page .form-text,
.auth-page .small,
.auth-page a.small,
.auth-page .btn-link {
    color: rgba(255, 255, 255, .88) !important;
}

.auth-page .form-control {
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    color: var(--auth-ink);
    min-height: 42px;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .08);
}

.auth-page .form-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .24), 0 10px 28px rgba(15, 23, 42, .12);
}

.auth-page .form-control.bg-light {
    background: rgba(255, 255, 255, .76) !important;
}

.login-actions {
    display: grid;
    gap: 10px;
}

.auth-page .btn-primary {
    border: 0;
    border-radius: 10px;
    min-height: 42px;
    background: #0d6efd;
    box-shadow: 0 12px 28px rgba(13, 110, 253, .28);
    font-weight: 700;
}

.auth-page .btn-outline-secondary {
    border-color: rgba(255, 255, 255, .82);
    border-radius: 10px;
    min-height: 42px;
    color: #fff;
    font-weight: 700;
}

.auth-page .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
}

.auth-page .alert {
    border: 0;
    border-radius: 10px;
}

@keyframes authPopupIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 576px) {
    .auth-page {
        align-items: flex-start;
        padding-top: 28px;
    }

    .login-shell,
    .safe-shell {
        max-width: 100%;
    }
}

.login-card-brand {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .94);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.login-brand-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-card .card-body {
    padding-top: 2.65rem !important;
}
