/* Hide Site Elements on Auth Pages */
.is-auth-page header,
.is-auth-page .kf-footer01,
.is-auth-page .bottom-bar {
    display: none !important;
}

.is-auth-page .auth-wrap01 {
    min-height: 100vh;
    padding: 20px;
    background: #fff;
}

@media(max-width:768px) {
    .is-auth-page .auth-wrap01 {
        padding: 0;
        align-items: flex-start;
    }

    .is-auth-page .auth-card01 {
        min-height: 100vh;
        box-shadow: none;
        border-radius: 0;
    }
}

.auth-wrap01 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
}

.auth-card01 {
    width: 100%;
    max-width: 1000px;
    min-height: 600px; /* Ensure consistent height across all auth pages */
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .05);
}

.auth-form01 {
    position: relative; /* Added to contain absolute children */
}

.auth-left01 {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-left01 h1 {
    font-size: 36px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.auth-left01 p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 15px;
}

.auth-form01 .input-group-custom {
    position: relative;
    margin-bottom: 20px;
}

.auth-form01 .input-group-custom i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.auth-form01 input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-form01 input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 29, 0.1);
}

.auth-form01 button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.auth-form01 button:hover {
    background: #e28e1b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 29, 0.3);
}

.auth-tabs01 {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
}

.auth-tabs01 button {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    transition: 0.3s;
}

.auth-tabs01 .active {
    background: #fff;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-divider01 {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider01 span {
    background: #fff;
    padding: 0 15px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider01::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #f1f5f9;
    z-index: -1;
}

/* OTP Specific - Stabilized Approach */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 30px auto;
    cursor: text;
    width: max-content;
}

.otp-box {
    width: 45px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s;
    user-select: none;
    flex: 0 0 auto; /* Prevent shrinking or growing */
}

.otp-box.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 29, 0.1);
    background: #fff;
}

.resend-timer {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #64748b;
}

.resend-timer span {
    color: var(--primary);
    font-weight: 600;
}

.auth-social01 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-social01 a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
    color: var(--dark);
    transition: .3s;
}

.auth-social01 a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auth-right01 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width:768px) {
    .auth-wrap01 {
        min-height: 100vh;
        padding: 0;
        background: #fff;
        align-items: flex-start;
    }

    .auth-card01 {
        grid-template-columns: 1fr;
        box-shadow: none;
        border-radius: 0;
        min-height: 100vh;
    }

    .auth-right01 {
        display: none;
    }
    
    .auth-left01 {
        padding: 30px 20px;
    }

    .auth-left01 h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .auth-left01 p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .auth-tabs01 {
        margin-bottom: 20px;
    }

    .otp-container {
        gap: 8px;
    }

    .otp-box {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}