/* ===============================
GLOBAL FIX
=============================== */
body:has(.auth-wrapper) header,
body:has(.auth-wrapper) footer {
    display: none !important;
}

body:has(.auth-wrapper) {
    margin: 0;
    padding: 0;
}

/* ===============================
WRAPPER
=============================== */
.auth-wrapper {
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

/* ===============================
BOOTSTRAP NO GUTTERS
=============================== */
.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

/* ===============================
LEFT SIDE
=============================== */
.auth-left {
    background: #ffffff;
    height: 100vh;
    position: relative;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding-top: 90px;
}

/* ===============================
FORM COMMON
=============================== */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    font-size: 28px;
    font-weight: 700;
    color: #6f2e1d;
    margin-bottom: 25px;
    text-align: right;
}

.auth-form p {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

/* ===============================
INPUTS
=============================== */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input:not([type]) {
    width: 100%;
    height: 48px;
    border: 1px solid #6f2e1d;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
    margin-bottom: 18px;
    outline: none;
    direction: rtl;
}

.auth-form input::placeholder {
    color: #999;
}

.otp-inputs input {
    width: unset;
}

/* ===============================
BUTTONS
=============================== */
.auth-form button {
    width: 100%;
    height: 48px;
    background: #6f2e1d;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-form button:hover {
    background: #5a2316;
}

/* ===============================
SWITCH LINKS
=============================== */
.switch {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
}

.switch a {
    color: #6f2e1d;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.switch a:hover {
    text-decoration: underline;
}

/* ===============================
ERROR MESSAGE
=============================== */
.auth-error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
    text-align: right;
}

/* ===============================
OTP
=============================== */
.otp-inputs {
    text-align: right;
    margin-bottom: 25px;
    direction: ltr;
}

.auth-form .otp-inputs input {
    width: 50px;
    height: 50px;
    border: 1px solid #6f2e1d;
    border-radius: 8px;
    text-align: center;
    font-size: 22px;
    margin: 0 6px;
}

/* ===============================
RIGHT SIDE IMAGE
=============================== */
.auth-right {
    height: 100vh;
    background: url('../img/auth-bg.jpg') center center no-repeat;
    background-size: cover;
    position: relative;
}

.auth-right::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 11;
    background: linear-gradient(97.78deg, #44211B 0.4%, #2A2442 99.6%);
    opacity: 0.7;
}

/* ===============================
LOGO
=============================== */
.auth-right .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.auth-right .logo {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    font-size: 60px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    text-align: center;
}

.auth-wrapper .bg-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
RESPONSIVE
=============================== */
@media (max-width: 991px) {
    .auth-right {
        display: none;
    }

    .auth-left {
        width: 100%;
    }

    .auth-box {
        padding-top: 60px;
    }
}

#login-form .auth-row{
    display: flex;
    justify-content: space-between;
}