/* Brand Icon */
.login-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-icon {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.login-icon:hover {
    transform: scale(1.05);
}

/* Logo Text Styling */
.login-logo-text {
    max-width: 200px;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

/* Vertical Divider Line */
@media (min-width: 768px) {
    .left-column::after {
        content: '';
        position: absolute;
        top: 5%;
        right: 0;
        bottom: 5%;
        width: 1px;
        background-color: rgba(108, 117, 125, 0.2);
        z-index: 1;
    }
    
    .left-column {
        position: relative;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
}

/* Typography */
.login-title {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 1.75rem;
    color: #1E3643;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 400;
}

/* Links */
.link-secondary {
    color: #5D5FEF;
    text-decoration: none;
    font-family: 'IBM Plex Sans', sans-serif;
    transition: color 0.2s ease;
}

.link-secondary:hover {
    color: #E49A21 !important;
    text-decoration: none;
}

/* Alert Styling */
.alert-danger {
    background-color: rgba(214, 69, 69, 0.1);
    border-color: #D64545;
    color: #D64545;
    border-radius: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vault-card {
        padding: 2rem 1.5rem;
    }
    
    .login-logo-text {
        max-width: 150px;
    }
    
    .login-icon {
        max-width: 80px;
        max-height: 80px;
    }
}

@media (max-width: 576px) {
    .vault-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .login-logo-text {
        max-width: 120px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
}

/* =====================================
   Seamless MFA Login Phase Transitions
   ===================================== */

/* Base styling for login phases */
.login-phase {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
    min-height: 300px;
}

/* Hidden phase styling */
.login-phase.d-none {
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none;
}

/* Phase transition states */
.login-phase.phase-exit {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-phase.phase-enter {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-phase.phase-enter-active {
    opacity: 1;
    transform: translateX(0);
}

/* MFA Phase specific styling */
#mfa-phase {
    position: relative;
}

.mfa-header {
    animation: mfa-header-slide-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.mfa-icon {
    animation: mfa-icon-bounce 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* MFA code input special styling */
#mfa_code {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mfa_code:focus {
    border-color: #E49A21;
    box-shadow: 
        0 0 0 0.2rem rgba(228, 154, 33, 0.25),
        0 4px 20px rgba(228, 154, 33, 0.1);
    background: #ffffff;
    transform: scale(1.02);
}

/* Button loading states */
.btn .btn-loading {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}


/* Keyframe animations */
@keyframes mfa-header-slide-in {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mfa-icon-bounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-20px);
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .login-phase {
        min-height: 250px;
    }
    
    #mfa_code {
        font-size: 1.25rem;
    }
    
    .mfa-icon i {
        font-size: 2rem !important;
    }
}
