/* ============================================
   Modern Login Design - Custom Styles
   Font: Inter (via Google Fonts)
   ============================================ */

/* Import Modern Font - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   DESIGN VARIATION 1: Minimalist Centered
   ============================================ */

.login-container-v1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card-v1 {
    width: 100%;
    max-width: 1200px;
    background: var(--bs-body-bg);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

[data-bs-theme="dark"] .login-card-v1 {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-logo-v1 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo-v1 img {
    height: 50px;
    width: auto;
}

.login-logo-v1 .logo-light {
    display: block;
}

.login-logo-v1 .logo-dark {
    display: none;
}

[data-bs-theme="dark"] .login-logo-v1 .logo-light {
    display: none;
}

[data-bs-theme="dark"] .login-logo-v1 .logo-dark {
    display: block;
}

.login-title-v1 {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    letter-spacing: -0.02em;
}

.login-subtitle-v1 {
    font-size: 0.9375rem;
    text-align: center;
    color: var(--bs-secondary-color);
    margin-bottom: 2rem;
    font-weight: 400;
}

.login-form-v1 {
    width: 100%;
}

.form-group-v1 {
    margin-bottom: 1.5rem;
}

.form-label-v1 {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
}

.form-input-v1 {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

[data-bs-theme="dark"] .form-input-v1 {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-input-v1:focus {
    outline: none;
    border-color: #1b6ec2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.1);
}

.form-input-v1::placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.6;
}

.btn-signin-v1 {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1b6ec2 0%, #258cfb 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-signin-v1:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(27, 110, 194, 0.3);
}

.btn-signin-v1:active:not(:disabled) {
    transform: translateY(0);
}

.btn-signin-v1:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.alert-error-v1 {
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    background-color: #fee;
    color: #c33;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

[data-bs-theme="dark"] .alert-error-v1 {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
}

/* Two-column layout for V1 */
.login-card-v1 .row {
    min-height: 500px;
}

.login-left-panel {
    background: linear-gradient(135deg, rgba(27, 110, 194, 0.05) 0%, rgba(37, 140, 251, 0.05) 100%);
    padding: 4rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .login-left-panel {
    background: linear-gradient(135deg, rgba(27, 110, 194, 0.15) 0%, rgba(37, 140, 251, 0.15) 100%);
    border-right-color: rgba(255, 255, 255, 0.1);
}

.login-branding {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.login-right-panel {
    padding: 4rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .login-card-v1 {
        max-width: 100%;
    }
    
    .login-left-panel {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 2rem 1.5rem;
    }
    
    [data-bs-theme="dark"] .login-left-panel {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .login-right-panel {
        padding: 2rem 1.5rem;
    }
    
    .login-branding,
    .login-form-container {
        max-width: 100%;
    }
}

/* ============================================
   DESIGN VARIATION 2: Split Screen
   ============================================ */

.login-container-v2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
}

.login-brand-section-v2 {
    flex: 1;
    background: linear-gradient(135deg, #1b6ec2 0%, #258cfb 100%);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-content-v2 {
    max-width: 480px;
}

.brand-logo-v2 {
    height: 60px;
    width: auto;
    margin-bottom: 2rem;
}

.brand-title-v2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.brand-description-v2 {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.brand-features-v2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item-v2 {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1rem;
}

.feature-item-v2 i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.login-form-section-v2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--bs-body-bg);
}

.login-form-wrapper-v2 {
    width: 100%;
    max-width: 420px;
}

.login-title-v2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    letter-spacing: -0.02em;
}

.login-subtitle-v2 {
    font-size: 1rem;
    color: var(--bs-secondary-color);
    margin-bottom: 2.5rem;
}

.login-form-v2 {
    width: 100%;
}

.form-group-v2 {
    margin-bottom: 1.5rem;
}

.form-label-v2 {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
}

.form-input-v2 {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

[data-bs-theme="dark"] .form-input-v2 {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-input-v2:focus {
    outline: none;
    border-color: #1b6ec2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.1);
}

.form-input-v2::placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.6;
}

.btn-signin-v2 {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1b6ec2 0%, #258cfb 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-signin-v2:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(27, 110, 194, 0.3);
}

.btn-signin-v2:active:not(:disabled) {
    transform: translateY(0);
}

.btn-signin-v2:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.alert-error-v2 {
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    background-color: #fee;
    color: #c33;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

[data-bs-theme="dark"] .alert-error-v2 {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
}

/* Responsive for Split Screen */
@media (max-width: 991px) {
    .login-container-v2 {
        flex-direction: column;
    }
    
    .login-brand-section-v2 {
        padding: 3rem 2rem;
    }
    
    .brand-title-v2 {
        font-size: 1.75rem;
    }
    
    .brand-description-v2 {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* ============================================
   DESIGN VARIATION 3: Floating Gradient
   ============================================ */

.login-container-v3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, 
        rgba(27, 110, 194, 0.05) 0%, 
        rgba(37, 140, 251, 0.05) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
}

[data-bs-theme="dark"] .login-container-v3 {
    background: linear-gradient(135deg, 
        rgba(27, 110, 194, 0.1) 0%, 
        rgba(37, 140, 251, 0.1) 100%);
}

.login-container-v3::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(27, 110, 194, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.login-container-v3::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 140, 251, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.login-card-v3 {
    width: 100%;
    max-width: 400px;
    background: var(--bs-body-bg);
    border-radius: 20px;
    padding: 3rem 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .login-card-v3 {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 29, 32, 0.95);
}

.login-logo-v3 {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-v3 img {
    height: 50px;
    width: auto;
}

.login-logo-v3 .logo-light {
    display: block;
}

.login-logo-v3 .logo-dark {
    display: none;
}

[data-bs-theme="dark"] .login-logo-v3 .logo-light {
    display: none;
}

[data-bs-theme="dark"] .login-logo-v3 .logo-dark {
    display: block;
}

.login-title-v3 {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    letter-spacing: -0.02em;
}

.login-subtitle-v3 {
    font-size: 0.9375rem;
    text-align: center;
    color: var(--bs-secondary-color);
    margin-bottom: 2rem;
    font-weight: 400;
}

.login-form-v3 {
    width: 100%;
}

.form-group-v3 {
    margin-bottom: 1.5rem;
}

.form-label-v3 {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-v3 {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--bs-body-color);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

[data-bs-theme="dark"] .form-input-v3 {
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.03);
}

.form-input-v3:focus {
    outline: none;
    border-color: #1b6ec2;
    box-shadow: 0 0 0 4px rgba(27, 110, 194, 0.12);
    background-color: var(--bs-body-bg);
}

.form-input-v3::placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.5;
}

.btn-signin-v3 {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1b6ec2 0%, #258cfb 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(27, 110, 194, 0.3);
}

.btn-signin-v3:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 110, 194, 0.4);
}

.btn-signin-v3:active:not(:disabled) {
    transform: translateY(0);
}

.btn-signin-v3:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.alert-error-v3 {
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    background-color: #fee;
    color: #c33;
    border-radius: 10px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

[data-bs-theme="dark"] .alert-error-v3 {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
}

.login-footer-v3 {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-bs-theme="dark"] .login-footer-v3 {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.login-footer-v3 p {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   Validation Messages Styling
   ============================================ */

.validation-message {
    color: #dc3545;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: block;
}

[data-bs-theme="dark"] .validation-message {
    color: #ff6b6b;
}

/* ============================================
   Common Responsive Adjustments
   ============================================ */

@media (max-width: 576px) {
    .login-card-v1,
    .login-card-v3 {
        padding: 2rem 1.5rem;
    }
    
    .login-title-v1,
    .login-title-v3 {
        font-size: 1.5rem;
    }
    
    .login-title-v2 {
        font-size: 1.75rem;
    }
}
