*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    font-family: Roboto;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: #f7f7f7;
    background-image: url('assets/bg.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top center;
}

#security-container {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,.3);
    user-select: none;
    visibility: hidden;
    z-index: -1;
    pointer-events: none;
}

#security-container.revealed {
    visibility: visible;
    z-index: 9999;
    pointer-events: unset;
}

#security-container .inner {
    position: fixed;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 50vh;
    padding: 35px 25px 25px;
    background: #fff;
    border-radius: 10px 10px 0 0;
    text-align: center;
    transition: all .5s;
}

#security-container.revealed .inner {bottom: 0;}

#security-container :is(h2, p) {
    font-weight: normal;
    font-size: 18px;
}

#security-container h2 {margin: 0 0 15px;}

#security-container p {
    color: rgb(29, 29, 29);
    font-size: 16px;
}

#security-container .otp-box {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px auto 0;
}

#security-container .otp-box input {
    width: 45px;
    aspect-ratio: 1;
    border: 1px solid grey;
    border-radius: 3px;
    text-align: center;
    font-size: 22px;
}

#security-container .cancel-btn {
    position: absolute;
    left: 25px;
    bottom: 25px;
    color: rgb(109, 99, 155);
    background: transparent;
    border: none;
}

#security-container .otp-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: rgb(109, 99, 155);
    font-size: 15px;
}

#security-container .otp-spinner.active {
    display: flex;
}

#security-container .otp-spinner .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(109, 99, 155, 0.25);
    border-top-color: rgb(109, 99, 155);
    border-radius: 50%;
    animation: otp-spin 0.8s linear infinite;
}

#security-container .otp-status {
    min-height: 22px;
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

#security-container.is-submitting .otp-box input {
    opacity: 0.7;
}

@keyframes otp-spin {
    to {
        transform: rotate(360deg);
    }
}