/* Hide default browser password reveal and clear buttons (e.g. MS Edge) */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #f4f7fb;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
}

.container-fluid {
    padding: 0px !important;
}

/* Left Side */

.login-left {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-left::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}

.brand-title {
    font-size: 34px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.brand-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    margin-top: 18px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Right Side */

.login-right {
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 430px;
}

.login-logo {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.login-subtitle {
    color: #64748b;
    font-size: 14px;
}

.form-label {
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    font-size: 14px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #2563eb;
}

.input-group-text {
    border-radius: 12px 0 0 12px;
    border: 1px solid #dbe2ea;
    background: white;
}

.btn-login {
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.forgot-link {
    text-decoration: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
}

/* Step wizard transitions */
.step-section {
    display: none;
}

.step-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* OTP Inputs Grid */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.otp-input {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
}

.otp-input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */

@media(max-width:991px) {

    .login-left {
        display: none !important;
    }

    .login-right {
        padding: 25px;
    }
}

/* ============================================================
   DARK MODE - Auth Pages
   ============================================================ */
[data-theme="dark"] body {
    background: #131720;
}

[data-theme="dark"] .login-right {
    background: #131720;
}

[data-theme="dark"] .login-card {
    background: transparent;
}

[data-theme="dark"] .login-logo {
    background: #1e3a6e;
    color: #5b9cf6;
}

[data-theme="dark"] .login-title {
    color: #e2e8f0;
}

[data-theme="dark"] .login-subtitle {
    color: #8da4c8;
}

[data-theme="dark"] .form-label {
    color: #94a3b8;
}

[data-theme="dark"] .form-control {
    background: #1e2845;
    border-color: #2e3d5e;
    color: #c5cfe2;
}

[data-theme="dark"] .form-control::placeholder {
    color: #4a5e82;
}

[data-theme="dark"] .form-control:focus {
    background: #1e2845;
    border-color: #5b9cf6;
    color: #c5cfe2;
    box-shadow: 0 0 0 3px rgba(91, 156, 246, 0.2);
}

[data-theme="dark"] .input-group-text {
    background: #1a2540;
    border-color: #2e3d5e;
    color: #8da4c8;
}

[data-theme="dark"] .toggle-password {
    background: #1a2540 !important;
    border-color: #2e3d5e !important;
    color: #8da4c8 !important;
}

[data-theme="dark"] .toggle-password:hover {
    background: #1e2845 !important;
    color: #5b9cf6 !important;
}

[data-theme="dark"] .otp-input {
    background: #1e2845;
    border-color: #2e3d5e;
    color: #c5cfe2;
}

[data-theme="dark"] .otp-input:focus {
    border-color: #5b9cf6;
    box-shadow: 0 0 0 3px rgba(91, 156, 246, 0.2);
}

[data-theme="dark"] .forgot-link {
    color: #5b9cf6;
}

[data-theme="dark"] .text-muted {
    color: #6b82a6 !important;
}

[data-theme="dark"] .alert-danger {
    background: rgba(248,113,113,0.1);
    border-color: rgba(248,113,113,0.25);
    color: #f87171;
}
