/* Simple Split Login Layout */
body:has(.login-container) {
    font-family: 'Segoe UI', 'Sarabun', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f5f5f5;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.login-header {
    background: #4a6cf7;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
}

/* Main Content */
.login-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 120px);
}

/* Image Section */
.login-image {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.8), rgba(74, 108, 247, 0.6)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%234a6cf7"/><g fill="white" opacity="0.1"><circle cx="100" cy="100" r="20"/><circle cx="300" cy="200" r="15"/><circle cx="50" cy="250" r="10"/><circle cx="350" cy="50" r="25"/></g></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.image-placeholder::before {
    content: '❤️';
    font-size: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Form Section */
.login-form {
    background: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Auth Form Container */
.auth-form-container {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    background: white;
    border-radius: 24px;
    padding: 60px 80px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Login Form Styling */
h2.auth-title, .auth-title {
    font-size: 2rem;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-title i {
    color: #4a6cf7;
}

.auth-subtitle {
    color: #666;
    margin: 0 0 30px 0;
    font-size: 14px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    border: 2px solid #e1e5e9;
    border-radius: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #4a6cf7;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.input-group-text {
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.input-group:focus-within .input-group-text {
    color: #4a6cf7;
}

.form-control {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px 12px 0;
    font-size: 16px;
    color: #333;
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.form-check-input {
    width: 16px;
    height: 16px;
    accent-color: #4a6cf7;
}

.form-check-label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Button */
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.btn-auth:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-link {
    color: #4a6cf7;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #3a5bd8;
    text-decoration: underline;
}

/* External Login */
.external-login-section {
    margin-top: 30px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

/* Footer */
.login-footer {
    background: #4a6cf7;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    margin-top: auto;
}

/* Validation */
.field-validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-content {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
    }
    
    .login-form {
        padding: 0;
    }
    
    .auth-form-container {
        padding: 40px 30px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 0;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    h2.auth-title, .auth-title {
        font-size: 1.5rem;
    }
}