/* Login Page Styles */
.login-container {
    background-color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Left Side - Introduction */
.login-intro {
    padding: 3rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: left;
    position: relative;
    z-index: 1;
}

/* Right Side - Login Form */
.login-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
}

.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

.quick-info-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Form Styles */
.login-form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem !important;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.login-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a365d, #2c5282);
}

.login-form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.form-floating {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.15);
    background-color: #fff;
}

.form-floating>label {
    padding: 1rem 0.75rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: #1a365d;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.btn-primary {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c5282, #1a365d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Input Icons */
.input-group-text {
    background-color: #f8fafc;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #64748b;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* Form Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.login-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1a365d, #2c5282);
    border-radius: 3px;
}

.login-header p {
    color: #64748b;
    margin-bottom: 0;
}

/* Remember Me & Forgot Password */
.form-check-label {
    color: #475569;
    font-weight: 500;
}

.forgot-password {
    color: #1a365d;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: #2c5282;
    text-decoration: none;
}

/* Social Login */
.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login p {
    color: #64748b;
    position: relative;
    margin-bottom: 1.5rem;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #e2e8f0;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: none;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google {
    background-color: #DB4437;
}

.social-btn.facebook {
    background-color: #4267B2;
}

.social-btn.twitter {
    background-color: #1DA1F2;
}

a {
    color: #1a365d;
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    color: #2c5282;
    text-decoration: none;
}

/* Feature Icons */
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(26, 54, 93, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a365d;
    margin-right: 1rem;
}

.feature h4 {
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Quick Info Section */
.quick-info {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.quick-info h5 {
    color: #1a365d;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .login-intro {
        padding: 2rem 1.5rem;
    }
    
    .login-form-section, 
    .quick-info-section {
        padding: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .login-container {
        background-color: #1a365d;
        display: flex;
        flex-direction: column;
    }
    
    .login-intro {
        min-height: 40vh;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .login-form-container {
        min-height: 60vh;
        padding: 2rem 1rem;
        background: #f8f9fa;
        border-radius: 1.5rem 1.5rem 0 0;
        margin-top: -2rem;
        position: relative;
        z-index: 2;
        flex: 1;
    }
    
    .login-form-section {
        padding: 2rem 1.5rem !important;
        margin: 1rem auto !important;
        max-width: 500px;
    }
    
    .quick-info-section {
        padding: 1.5rem;
        margin-top: 0;
        border-radius: 0 0 1rem 1rem;
    }
    
    .feature {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .login-container {
        display: flex;
        flex-direction: column;
    }
    
    .login-intro {
        min-height: 40vh;
        padding: 1.5rem 1rem;
    }
    
    .login-form-container {
        min-height: 60vh;
        padding: 1.5rem 0.5rem;
    }
    
    .login-form-section {
        padding: 1.5rem !important;
        margin: 0.5rem auto !important;
        max-width: 100%;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.25rem;
    }
    
    .feature {
        text-align: left;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Fix for form elements on mobile */
.form-floating>label {
    padding: 1rem 0.75rem;
}

.form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

/* Ensure buttons are tappable on mobile */

.form-check-input {
    min-height: 24px;
    min-width: 24px;
}

/* Better spacing for form elements on small screens */
.mb-4 {
    margin-bottom: 1.25rem !important;
}

/* Adjust quick info grid for small screens */
@media (max-width: 400px) {
    .quick-info .row > [class^="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .quick-info .row > [class^="col-"]:last-child {
        margin-bottom: 0;
    }
}
