/* ==========================================================================
   SECURUS ONE - Login / Register screens
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sec-canvas);
}

.auth-brand {
    position: relative;
    flex: 0 0 auto;
    min-height: 292px;
    padding: 46px 24px 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(120% 90% at 88% 8%, #4A0A11 0%, rgba(74, 10, 17, 0) 58%),
                linear-gradient(155deg, #0B1120 0%, #111A2C 46%, #2A0C13 100%);
}

.auth-brand--register {
    background: radial-gradient(120% 100% at 50% 0%, #2A0810 0%, rgba(42, 8, 16, 0) 55%),
                linear-gradient(160deg, #1A0409 0%, #7E0B12 48%, #D6111B 100%);
}

.auth-brand__contours {
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
}

.auth-brand__camera {
    position: absolute;
    top: 6px;
    right: -34px;
    width: 210px;
    opacity: .95;
    pointer-events: none;
}

.auth-brand__mark {
    position: relative;
    z-index: 2;
    text-align: center;
}

.auth-brand__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}

.auth-brand__wave svg {
    display: block;
    width: 100%;
    height: 86px;
}

.auth-brand__wave--vertical {
    display: none;
}

.auth-back {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .16);
    color: #FFFFFF;
    backdrop-filter: blur(4px);
    transition: background .18s ease;
}

.auth-back:hover {
    background: rgba(255, 255, 255, .3);
    color: #FFFFFF;
}

.auth-back .fi {
    font-size: 18px;
}

.auth-main {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 22px 0;
    background: var(--sec-canvas);
}

.auth-main::before,
.auth-main::after {
    content: "";
    position: absolute;
    top: -46px;
    width: 96px;
    height: 120px;
    opacity: .5;
    pointer-events: none;
    background-image: radial-gradient(var(--sec-red-tint) 34%, transparent 36%);
    background-size: 13px 13px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.auth-main::before {
    left: 0;
}

.auth-main::after {
    right: 0;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 22px 0 26px;
}

.auth-card__head {
    text-align: center;
    margin-bottom: 26px;
}

.auth-footer {
    position: relative;
    margin-top: auto;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

.auth-footer svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 992px) {
    .auth-page {
        flex-direction: row;
    }

    .auth-brand {
        flex: 0 0 46%;
        max-width: 620px;
        min-height: 100vh;
        padding: 40px 60px;
        justify-content: center;
    }

    .auth-brand__camera {
        top: 40px;
        right: 24px;
        width: 260px;
    }

    .auth-brand__wave--horizontal {
        display: none;
    }

    .auth-brand__wave--vertical {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: auto;
        right: -1px;
        width: 74px;
        height: 100%;
    }

    .auth-brand__wave--vertical svg {
        width: 74px;
        height: 100%;
    }

    .auth-brand .sec-brand__word {
        font-size: 62px;
    }

    .auth-brand .sec-brand__tagline {
        font-size: 14px;
    }

    .auth-main {
        justify-content: center;
        padding: 48px 40px 0;
        overflow: hidden;
    }

    .auth-main::before,
    .auth-main::after {
        top: 0;
        height: 200px;
    }

    .auth-card {
        padding: 0;
        margin: auto 0;
    }

    .auth-footer {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 100px) {
    .auth-card {
        max-width: 700px;
    }
}

@media (max-width: 400px) {
    .auth-brand {
        min-height: 250px;
        padding: 38px 18px 64px;
    }

    .sec-brand__word {
        font-size: 38px;
    }

    .sec-title {
        font-size: 30px;
    }
}

.sec-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.sec-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.sec-check__box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 1.5px solid var(--sec-border);
    border-radius: 6px;
    background: #FFFFFF;
    color: transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.sec-check__box .fi {
    font-size: 12px;
    line-height: 1;
}    

.sec-check input[type="checkbox"]:checked ~ .sec-check__box {
    background: var(--sec-red);
    border-color: var(--sec-red);
    color: #FFFFFF;
}

.sec-check input[type="checkbox"]:focus-visible ~ .sec-check__box {
    box-shadow: 0 0 0 4px rgba(228, 18, 26, .16);
}

.sec-check__text {
    font-size: 14px;
    color: var(--sec-ink);
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 17, 32, .45);
    backdrop-filter: blur(2px);
}

.app-loader[hidden] {
    display: none !important;
}

/*.app-loader__box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 18px 44px rgba(11, 17, 32, .24);
}*/

.app-loader__spinner {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 6px solid var(--sec-red-tint);
    border-top-color: var(--sec-red);
    border-radius: 50%;
    animation: app-loader-spin .7s linear infinite;
}

/*.app-loader__text {
    font-weight: 600;
    font-size: 14px;
    color: var(--sec-ink);
}*/

@keyframes app-loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .app-loader__spinner {
        animation-duration: 2s;
    }
}
