:root {
    --primary: #4361ee;
    --primary-dark: #3f37c9;
    --success: #06d6a0;
    --input-bg: rgba(255, 255, 255, 0.25);
    --input-border: rgba(255, 255, 255, 0.3);
    --input-focus: rgba(255, 255, 255, 0.4);
    --text-light: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(0 0 0 / 50%), rgb(28 28 28 / 20%)), url(../images/neon.jpg);
    background-size: inherit;
    background-position: center;
}

.login-wrapper {
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.visual-panel {
    background: url(../../theme/bg.png) center/cover no-repeat;
    color: #fff;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel {
    padding: 60px 50px;
}

#registerModal .modal-content {
    background: rgb(255 255 255 / 25%) !important;
    backdrop-filter: blur(5px);
}

#registerModal .modal-header {
    background: rgba(0, 0, 0, 0.25) !important;
}

.form-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.password-toggle {
    cursor: pointer;
}

.form-control,
.input-group-text {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: white !important;
    backdrop-filter: blur(4px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-control:focus {
    background-color: var(--input-focus) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.35) !important;
    color: white !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
}

.otp-group {
    display: flex;
    gap: 10px;
}
.otp-input {
    width: 48px;
    height: 56px;
    color: blue !important;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 10px;
}
.otp-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.35) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 768px) {
    .visual-panel {
        display: none !important;
    }

    .form-panel {
        padding: 40px 30px;
    }

    .login-wrapper {
        max-width: 420px;
        margin: 0 auto;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
#registerModal input:-webkit-autofill,
#registerModal input:-webkit-autofill:hover,
#registerModal input:-webkit-autofill:focus,
#registerModal input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    caret-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
    box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
    background-color: var(--input-bg) !important;
    background-image: none !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s !important;
    border: 1px solid var(--input-border) !important;
}

input:-webkit-autofill:focus,
#registerModal input:-webkit-autofill:focus {
    background-color: var(--input-focus) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--input-focus) inset, 0 0 0 0.25rem rgba(67, 97, 238, 0.35) !important;
    box-shadow: 0 0 0px 1000px var(--input-focus) inset, 0 0 0 0.25rem rgba(67, 97, 238, 0.35) !important;
    border-color: var(--primary) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
}

input:-webkit-autofill::first-line,
#registerModal input:-webkit-autofill::first-line {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
}

input:-webkit-autofill,
#registerModal input:-webkit-autofill {
    filter: none !important;
}

#registerModal .form-control {
    color: white !important;
    -webkit-text-fill-color: white !important;
}
