.auth-login-row {
    min-height: 100vh;
    padding: 32px 0;
}

html,
body,
.auth-bg {
    color-scheme: dark;
    scrollbar-color: rgba(77, 183, 255, 0.46) rgba(4, 13, 22, 0.86);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.auth-bg::-webkit-scrollbar,
.auth-bg *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.auth-bg::-webkit-scrollbar-track,
.auth-bg *::-webkit-scrollbar-track {
    background: rgba(4, 13, 22, 0.86);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.auth-bg::-webkit-scrollbar-thumb,
.auth-bg *::-webkit-scrollbar-thumb {
    background: rgba(77, 183, 255, 0.46);
    border: 2px solid rgba(4, 13, 22, 0.86);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.auth-bg::-webkit-scrollbar-thumb:hover,
.auth-bg *::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 183, 255, 0.68);
}

.auth-login-column {
    flex: 0 0 auto;
    width: min(100%, 500px);
    max-width: 500px;
}

.auth-content {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border: 1px solid rgba(149, 185, 214, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(12, 29, 43, 0.88), rgba(4, 13, 22, 0.82)),
        rgba(6, 19, 31, 0.84);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.auth-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4db7ff, #16c79a, #f2b84b);
}

.auth-content .logo {
    display: block;
    max-width: 230px;
    height: auto;
    margin: 0 auto;
    opacity: 0.92;
    filter: brightness(0) invert(1) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.auth-content > .text-center .ct-white-text {
    margin-bottom: 0;
    color: rgba(236, 246, 255, 0.82) !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
}

.custom-form {
    margin-top: 24px !important;
    padding-top: 0 !important;
}

.custom-form .mb-3 {
    margin-bottom: 18px !important;
}

.form-label,
#form-label {
    margin-bottom: 8px;
    color: rgba(236, 246, 255, 0.9) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.auth-content input.form-control,
.auth-content .input-group input.form-control {
    min-height: 46px;
    border: 1px solid rgba(158, 191, 219, 0.26);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.09) !important;
    background-color: rgba(255, 255, 255, 0.09) !important;
    color: #f6fbff !important;
    -webkit-text-fill-color: #f6fbff;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-content input.form-control::placeholder {
    color: rgba(226, 238, 249, 0.52);
}

.auth-content input.form-control:focus {
    border-color: rgba(77, 183, 255, 0.78);
    background: rgba(255, 255, 255, 0.13) !important;
    background-color: rgba(255, 255, 255, 0.13) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(77, 183, 255, 0.16);
}

.auth-content input.form-control:-webkit-autofill,
.auth-content input.form-control:-webkit-autofill:hover,
.auth-content input.form-control:-webkit-autofill:focus {
    border-color: rgba(77, 183, 255, 0.62) !important;
    background-color: rgba(17, 37, 53, 0.94) !important;
    background-image: none !important;
    -webkit-text-fill-color: #f6fbff !important;
    caret-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(17, 37, 53, 0.94) inset, 0 0 0 3px rgba(77, 183, 255, 0.16) !important;
    box-shadow: 0 0 0 1000px rgba(17, 37, 53, 0.94) inset, 0 0 0 3px rgba(77, 183, 255, 0.16) !important;
    transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

.auth-pass-inputgroup .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -4px;
    margin-bottom: 20px;
}

.auth-remember-check {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 22px;
    margin: 0;
    padding-left: 0;
    white-space: nowrap;
}

.auth-remember-check .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    border: 1px solid rgba(158, 191, 219, 0.42);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.08) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    box-shadow: none;
    cursor: pointer;
}

.auth-remember-check .form-check-input:checked {
    border-color: #16c79a !important;
    background: #16c79a url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 5l3 3 7-7'/%3e%3c/svg%3e") center / 12px 12px no-repeat !important;
}

.auth-content #remember_me.form-check-input:checked {
    border-color: #16c79a !important;
    background-color: #16c79a !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 5l3 3 7-7'/%3e%3c/svg%3e") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 12px 12px !important;
}

.auth-remember-check .form-check-input:focus {
    border-color: rgba(77, 183, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(77, 183, 255, 0.16);
}

.auth-remember-check .form-check-label {
    color: rgba(236, 246, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

#password-addon {
    min-width: 48px;
    border: 1px solid rgba(158, 191, 219, 0.26);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(236, 246, 255, 0.86);
    box-shadow: none !important;
    text-shadow: none;
}

#password-addon:hover,
#password-addon:focus,
#password-addon:active {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: none !important;
    text-shadow: none;
}

#password-addon i {
    filter: none;
    text-shadow: none;
}

#forgot-password {
    display: inline-flex;
    justify-content: flex-end;
    flex: 0 0 auto;
    color: rgba(236, 246, 255, 0.82) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
}

#forgot-password u {
    text-decoration-color: rgba(77, 183, 255, 0.7);
    text-underline-offset: 4px;
}

#forgot-password:hover {
    color: #ffffff !important;
}

.auth-content .btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 42px;
    margin: 0 5px;
    border-radius: 6px;
    font-weight: 800;
    box-shadow: none;
}

.auth-content .btn-success.btn-auth {
    border-color: transparent;
    background: linear-gradient(135deg, #16c79a, #0ca678);
}

.auth-content .btn-info.btn-auth {
    border: 1px solid rgba(77, 183, 255, 0.52);
    background: rgba(77, 183, 255, 0.12);
    color: #eaf7ff;
}

.auth-content .btn-auth:hover,
.auth-content .btn-auth:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.auth-content .text-muted.ct-white-text small,
.auth-content small.ct-white-text {
    color: rgba(236, 246, 255, 0.7) !important;
    font-size: 10px !important;
    letter-spacing: 0;
}

#copyright {
    text-align: center !important;
    color: white;
}

#debug-icon,
#debug-icon.debug-bar-dinlineBlock {
    display: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

@media (max-width: 575.98px) {
    .auth-login-row {
        padding: 20px 0;
    }

    .auth-content {
        padding: 24px 20px;
    }

    .auth-content .logo {
        max-width: 200px;
    }

    .auth-content .btn-auth {
        width: 100%;
        margin: 5px 0;
    }

    .auth-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    #forgot-password {
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
    }
}