/* ============================================
   Login Page Split Screen Layout
   Modern Minimal Design
   ============================================ */

/* Split screen page container */
.login-split-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

.login-split-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* Left branding panel */
.branding-panel {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative elements for branding panel */
.branding-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: patternMove 20s linear infinite;
}

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

.branding-content {
    position: relative;
    z-index: 1;
}

.branding-logo {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.branding-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 0;
}

/* Right form panel */
.form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: white;
}

/* Login form container */
.login-form-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Input wrapper with icon */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-wrapper .form-control:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.input-wrapper .input-icon {
    position: absolute;
    right: 1rem;
    color: #999;
    pointer-events: none;
    font-size: 1.125rem;
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.password-toggle i {
    font-size: 1.125rem;
}

/* Custom checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #666;
    user-select: none;
}

.custom-checkbox label::before {
    content: '';
    display: inline-flex;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 0.5rem;
    background: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox label::after {
    content: '\2713';
    display: none;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: -1.25rem;
}

.custom-checkbox input[type="checkbox"]:checked + label::before {
    background: #667eea;
    border-color: #667eea;
}

.custom-checkbox input[type="checkbox"]:checked + label::after {
    display: block;
}

.custom-checkbox label:hover::before {
    border-color: #667eea;
}

/* Submit button */
.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

/* Alert styling */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-danger {
    background: #fee;
    color: #c33;
}

/* Remove old login-box styles */
.login-box {
    width: auto;
    margin: 0;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .login-split-container {
        flex-direction: column;
    }

    .branding-panel {
        padding: 2rem;
        min-height: 200px;
    }

    .branding-logo {
        max-width: 100px;
        max-height: 100px;
        margin-bottom: 1rem;
    }

    .branding-title {
        font-size: 1.75rem;
    }

    .branding-tagline {
        font-size: 1rem;
    }

    .form-panel {
        padding: 2rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 1.5rem;
    }

    .branding-panel {
        padding: 1.5rem;
    }

    .input-wrapper .form-control {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}
