/* Modern Underline Tabs */
.login-method-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #e7e7e7;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.login-method-tabs .nav-item {
    flex: 0 1 auto;
}

.login-method-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: #697a8d;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    margin-bottom: -2px;
    white-space: nowrap;
    transform: scale(1);
}

.login-method-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #696cff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.login-method-tabs .nav-link:hover {
    color: #566a7f;
    background: rgba(105, 122, 141, 0.04);
    transform: scale(1.02);
}

.login-method-tabs .nav-link.active {
    color: #696cff;
    background: transparent;
    transform: scale(1.05);
}

.login-method-tabs .nav-link.active::before {
    width: 100%;
}

.login-method-tabs .nav-link i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.login-method-tabs .nav-link.active i {
    transform: scale(1.1);
}

/* Smooth transition for tab content */
.tab-content {
    position: relative;
    overflow: hidden;
    padding-top: 1.5rem;
    min-height: 400px;
    transition: height 0.3s ease;
}

/* Tab pane positioning */
.tab-pane {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(40px);
    transition: none;
    pointer-events: none;
}

/* Active tab visible */
.tab-pane.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Slide animations */
.tab-pane.sliding-left {
    animation: slideLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tab-pane.sliding-right {
    animation: slideRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Prevent layout shift and remove scroll */
.authentication-wrapper {
    height: 100vh;
    overflow: hidden;
}

.authentication-inner {
    height: 100vh;
    overflow: hidden;
}

/* Keep image stable */
.authentication-inner .d-lg-flex {
    height: 100vh;
}

/* Center the illustration image */
.authentication-bg .w-px-400 > div:first-child {
    text-align: center;
}

.authentication-bg .w-px-400 > div:first-child img {
    margin: 0 auto;
    display: block;
}

/* Responsive tabs for mobile */
@media (max-width: 575.98px) {
    .login-method-tabs .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .login-method-tabs .nav-link i {
        font-size: 1.125rem;
    }
}
