/* public/assets/css/login.css */

:root {
    --primary-color: #007bff;
    --primary-color-hover: #0056b3;
    --text-color: #333;
    --label-color: #6c757d;
    --input-border-color: #ced4da;
    --input-focus-border-color: #80bdff;
    --white-color: #fff;
    --light-gray-color: #f8f9fa;
    --separator-color: #e9ecef;
}

.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-branding-panel {
    width: 50%;
    background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    text-align: center;
    padding: 2rem;
}

.login-branding-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.login-branding-content {
    position: relative; /* To appear above the overlay */
}

.login-branding-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-branding-content p {
    font-size: 1.1rem;
    max-width: 400px;
}

.login-form-panel {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white-color);
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-form-wrapper h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.login-form-wrapper .sub-heading {
    color: var(--label-color);
    margin-bottom: 2rem;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--input-border-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.social-login-btn:hover {
    background-color: var(--light-gray-color);
    text-decoration: none;
}

.social-login-btn i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--label-color);
    margin: 1.5rem 0;
}

.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--separator-color);
}

.separator:not(:empty)::before {
    margin-right: .5em;
}

.separator:not(:empty)::after {
    margin-left: .5em;
}

/* Re-using floating label styles from previous design */
.form-group-modern {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group-modern .form-control {
    border-radius: 8px;
    border: 1px solid var(--input-border-color);
    padding: 0.75rem 1rem;
    height: auto;
    width: 100%;
    background-color: transparent;
    transition: border-color 0.2s ease-in-out;
}

.form-group-modern .form-control:focus {
    outline: none;
    border-color: var(--input-focus-border-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group-modern label {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    color: var(--label-color);
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    background-color: var(--white-color);
    padding: 0 0.25rem;
}

.form-group-modern .form-control:focus + label,
.form-group-modern .form-control:not(:placeholder-shown) + label {
    top: -0.7rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--label-color);
}

.btn-modern {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-modern:hover {
    background-color: var(--primary-color-hover);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.login-links {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    text-align: left;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-branding-panel {
        display: none; /* Hide branding panel on small screens */
    }
    .login-form-panel {
        width: 100%;
    }
}