:root {
    --public-navy-950: #020b1b;
    --public-navy-900: #06142c;
    --public-navy-800: #0d2b5e;
    --public-blue-600: #1e5cff;
    --public-blue-500: #3e7dff;
    --public-blue-300: #8db9ff;
    --public-ice: #e8f1ff;
    --public-muted: #9fb1cc;
    --public-line: rgba(157, 187, 231, 0.17);
    --public-panel: rgba(7, 22, 48, 0.76);
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--public-navy-950);
}

html.public-auth-root {
    min-height: 100%;
    background: var(--public-navy-950) !important;
}

body.public-auth {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: #f8fbff;
    background:
        radial-gradient(circle at 68% 6%, rgba(22, 83, 190, 0.25), transparent 29rem),
        linear-gradient(135deg, #020a18 0%, #06152f 48%, #071a3a 100%) !important;
    font-family: Inter, Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.public-auth__shell {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: none;
    overflow: visible;
}

.public-auth__ambient {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.public-auth__ambient--one {
    top: 19%;
    left: 50%;
    width: 27rem;
    height: 27rem;
    border: 1px solid rgba(80, 143, 255, 0.09);
    box-shadow: inset 0 0 8rem rgba(30, 92, 255, 0.1), 0 0 11rem rgba(30, 92, 255, 0.08);
    transform: translateX(-50%);
}

.public-auth__ambient--two {
    right: -10rem;
    bottom: -15rem;
    width: 32rem;
    height: 32rem;
    background: rgba(21, 70, 150, 0.1);
    filter: blur(75px);
}

.public-auth__header {
    display: flex;
    min-height: 6rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--public-line);
}

.public-auth__brand,
.public-auth__home-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.public-auth__brand {
    gap: 0.8rem;
    font-size: 1.22rem;
    font-weight: 690;
    letter-spacing: -0.025em;
}

.public-auth__brand:hover,
.public-auth__brand:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(141, 185, 255, 0.72);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3rem;
}

.public-auth__brand img {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.8rem;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(24, 92, 255, 0.24);
}

.public-auth__home-link {
    gap: 0.35rem;
    color: var(--public-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 220ms ease, transform 220ms ease;
}

.public-auth__home-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 220ms ease;
}

.public-auth__home-link:hover {
    color: #dce9ff;
}

.public-auth__home-link:hover svg {
    transform: translateX(-2px);
}

.public-auth__main {
    display: flex;
    min-height: min-content;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 2.2rem var(--public-shell-mobile-gutter);
}

.public-auth__main > .page,
.public-auth .page {
    min-height: auto;
    width: 100%;
    background: transparent !important;
}

.public-auth .container-tight {
    max-width: 29rem;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.public-auth .auth-logo-container,
.public-auth .container-tight > .display-6 {
    display: none;
}

.public-auth .card {
    border: 1px solid rgba(150, 184, 234, 0.19);
    border-radius: 1.45rem;
    color: #f8fbff;
    background: linear-gradient(155deg, rgba(14, 40, 83, 0.78), rgba(4, 15, 34, 0.9));
    box-shadow: 0 40px 100px rgba(0, 4, 14, 0.4), inset 0 1px rgba(255, 255, 255, 0.07);
    overflow: hidden;
    backdrop-filter: blur(18px);
    animation: public-auth-enter 560ms cubic-bezier(.2, .7, .2, 1) both;
}

.public-auth .card-body {
    padding: 2rem 2.15rem !important;
}

.public-auth .card-body > h2,
.public-auth .card-body > h3,
.public-auth .card-title {
    margin-top: 0 !important;
    margin-bottom: 1.65rem !important;
    color: #fff;
    font-size: 1.85rem;
    font-weight: 610;
    letter-spacing: -0.045em;
}

.public-auth .form-label,
.public-auth .form-check-label {
    color: #cbd9ec;
    font-size: 0.78rem;
    font-weight: 600;
}

.public-auth .form-control,
.public-auth .input-group-flat .form-control {
    min-height: 3.1rem;
    border: 1px solid rgba(147, 179, 225, 0.2);
    border-radius: 0.72rem !important;
    outline: none;
    color: #fff;
    background: rgba(3, 13, 31, 0.6) !important;
    box-shadow: none;
    transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.public-auth .form-control:focus {
    border-color: rgba(100, 158, 255, 0.86);
    color: #fff;
    background: rgba(3, 13, 31, 0.82) !important;
    box-shadow: 0 0 0 3px rgba(45, 109, 237, 0.17), 0 8px 24px rgba(1, 11, 31, 0.2);
}

.public-auth .form-control:-webkit-autofill,
.public-auth .form-control:-webkit-autofill:hover,
.public-auth .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px #152a4b inset;
    transition: background-color 9999s ease-out;
}

.public-auth .form-check-input {
    border-color: rgba(147, 179, 225, 0.32);
    background-color: rgba(3, 13, 31, 0.58);
}

.public-auth .form-check-input:checked {
    border-color: var(--public-blue-600);
    background-color: var(--public-blue-600);
}

.public-auth .form-check-input:focus {
    border-color: var(--public-blue-500);
    box-shadow: 0 0 0 3px rgba(45, 109, 237, 0.17);
}

.public-auth .registration-consent {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    margin: 1.05rem 0 1.3rem;
    color: var(--public-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.public-auth .registration-consent .form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0.12rem 0 0;
}

.public-auth .registration-consent label {
    cursor: pointer;
}

.public-auth .registration-consent a {
    text-decoration: underline;
    text-decoration-color: rgba(141, 185, 255, 0.62);
    text-underline-offset: 0.14rem;
}

.public-auth .registration-consent a:hover,
.public-auth .registration-consent a:focus-visible {
    color: #dce9ff;
    text-decoration-color: currentColor;
}

.public-auth .registration-consent--invalid .form-check-input {
    border-color: #ff8995;
}

.public-auth .btn-primary {
    min-height: 3.1rem;
    border: 1px solid rgba(128, 176, 255, 0.3);
    border-radius: 0.72rem;
    color: #fff;
    background: linear-gradient(135deg, #256af0, #154bbf);
    box-shadow: 0 12px 30px rgba(11, 67, 181, 0.22), inset 0 1px rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 650;
    transition: box-shadow 220ms ease, filter 220ms ease, transform 220ms ease;
}

.public-auth .btn-primary:hover,
.public-auth .btn-primary:focus-visible {
    border-color: rgba(145, 188, 255, 0.45);
    color: #fff;
    background: linear-gradient(135deg, #2a71f7, #1852ca);
    box-shadow: 0 16px 36px rgba(11, 67, 181, 0.3), inset 0 1px rgba(255, 255, 255, 0.22);
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.public-auth .form-footer {
    margin-top: 1.35rem;
}

.public-auth__main a:not(.btn) {
    color: var(--public-blue-300);
    text-decoration: none;
    transition: color 180ms ease;
}

.public-auth__main a:not(.btn):hover {
    color: #c0d8ff;
}

.public-auth .text-muted,
.public-auth .form-label-description,
.public-auth .text-secondary {
    color: var(--public-muted) !important;
}

.public-auth .alert {
    border: 1px solid rgba(111, 164, 255, 0.22);
    border-radius: 0.72rem;
    color: #dce9ff;
    background: rgba(29, 86, 185, 0.14);
}

.public-auth .invalid-feedback {
    color: #ffb8bf;
}

.public-auth .card-header {
    padding: 0 1.15rem;
    border-bottom-color: rgba(150, 184, 234, 0.14);
    background: rgba(3, 13, 31, 0.28);
}

.public-auth .nav-tabs {
    border: 0;
}

.public-auth .nav-tabs .nav-link {
    border: 0;
    color: #7185a3;
    background: transparent;
    font-size: 0.75rem;
}

.public-auth .nav-tabs .nav-link.active {
    border-bottom: 1px solid var(--public-blue-500);
    color: var(--public-blue-300);
}

.public-auth .card-footer {
    border-top-color: rgba(150, 184, 234, 0.14);
    background: rgba(3, 13, 31, 0.24);
}

.public-auth .button-secondary {
    border-color: rgba(147, 179, 225, 0.2);
    color: #d8e5f7;
    background: rgba(255, 255, 255, 0.04);
}

@keyframes public-auth-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-height: 820px) and (min-width: 600px) {
    .public-auth__header {
        min-height: 5rem;
    }

    .public-auth__main {
        padding-block: 1.35rem;
    }

    .public-auth .card-body {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

}

@media (max-width: 520px) {
    .public-auth__header {
        min-height: 5.5rem;
    }

    .public-auth__brand img {
        width: 2.35rem;
        height: 2.35rem;
    }

    .public-auth__main {
        padding-block: 2.4rem;
        align-items: flex-start;
    }

    .public-auth .card {
        border-radius: 1.2rem;
    }

    .public-auth .card-body {
        padding: 1.55rem !important;
    }

    .public-auth .card-body > h2,
    .public-auth .card-body > h3,
    .public-auth .card-title {
        font-size: 1.65rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
