.modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-width: 450px;
    margin: 0 auto;
    z-index: 999999;
    transition: .3s ease-in-out;
    animation: slowShow .3s;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 212, 92, 0.18), transparent 24%),
        var(--kbz-gradient);
}

.modal-content,
.modal-body,
.modal-overlay {
    position: relative;
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
}

.modal-header {
    position: fixed;
    max-width: 450px;
    margin: 0 auto;
    z-index: 99999;
    width: 100%;
}

.modal-body {
    margin-bottom: 50px;
    margin-top: 50px;
    justify-content: center;
}

.modal-content { z-index: 99; overflow: auto; }

.modal-footer {
    min-height: 80px;
    position: relative;
    width: 100%;
    visibility: hidden;
    flex: 0;
}

.modal_logo {
    margin-bottom: 1.65rem;
}

.modal_brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
}

.auth_wrapper,
.auth_box_login,
.auth_input,
.auth_btn { width: 100%; }

.auth_title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .85rem;
    color: var(--kbz-text);
    letter-spacing: -.03em;
}

.auth_box {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    align-items: center;
    padding: 2rem 1.35rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 44px rgba(3, 45, 102, 0.18);
}

input.auth_input {
    background: transparent;
    color: var(--kbz-text);
}

.auth_input_wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    background: var(--kbz-bg-soft);
    color: var(--kbz-text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 2.5;
    border-radius: 18px;
    gap: .75rem;
    padding: 0 1rem;
    border: 1px solid rgba(14, 99, 215, 0.1);
}

.modal_icon {
    font-size: 1.1rem;
    color: #79a7d8;
}

.auth_input::placeholder {
    opacity: .8;
    color: #92a4b7;
    font-weight: 500;
}

.auth_box_login {
    display: flex;
    flex-flow: column;
    gap: .85rem;
}

.auth_box .text-gray-300 {
    color: #7d92a7 !important;
}

.btn_login {
    background: var(--kbz-gradient-h);
    border-radius: 18px;
    text-align: center;
    font-size: 1rem !important;
    line-height: 3rem !important;
    font-weight: 800;
    color: #fff !important;
    margin-top: .35rem;
    box-shadow: 0 14px 24px rgba(11, 76, 156, 0.18);
}

.btn_login span { color: #fff !important; }

.auth_btn { transition: transform 0.1s ease, filter 0.1s ease; }
.auth_btn:hover { filter: brightness(1.03); }
.auth_btn:active { transform: scale(0.97); }

.goto_text {
    color: var(--kbz-blue);
    cursor: pointer;
    font-weight: 700;
}

.hidden.modal { display: none !important; }

.modal.loginModal[data-user-authorized="auth"],
.modal.registerModal[data-user-authorized="auth"] {
    display: none !important;
    visibility: hidden !important;
}
