/* LOGIN SPLIT SCREEN LAYOUT */

html, body {
    overflow: hidden !important;
    height: 100%;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #fff;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
}

/* LEFT SIDE - IMAGE */
.login-image-side {
    display: none; /* Hidden on mobile */
    width: 50%;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background-image: url('/assets/images/landing/hero-bg.jpg'); /* Fallback */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Gradient Overlay */
.login-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
    z-index: 1;
}

.login-image-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
}

.login-image-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-image-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 80%;
}

/* RIGHT SIDE - FORM */
.login-form-side {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    position: relative;
    margin-left: 50%;
    height: 100vh;
    overflow-y: auto;
    z-index: 2;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    padding: 4rem 1rem;
    margin: auto;
}

a#consentLink{
    color: #6476a4;
}

/* Header inside form */
.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #4E73DF 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(78, 115, 223, 0.25);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

/* Toggle Switch */
.auth-toggle {
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-toggle button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.auth-toggle button.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Form Specifics */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.forgot-link {
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 1rem;
}

/* Back Button */
.back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-home:hover {
    color: #3b82f6;
}

/* Compact Form Groups for Login Page */
.login-form-container .form-group-modern {
    margin-bottom: 1.5rem;
}

.login-form-container .form-options {
    margin-bottom: 1rem;
}

.login-form-container .divider {
    margin: 1.5rem 0;
}

/* MOBILE STYLES */
@media (max-width: 991px) {
    .login-form-side {
        margin-left: 0;
        padding: 1rem;
    }
    .login-form-container {
        padding: 2rem 1rem;
    }
    .login-image-title {
        font-size: 2rem;
    }
    .login-image-subtitle {
        font-size: 1rem;
    }
    .back-home {
        top: 1rem;
        left: 1rem;
    }
}

/* DESKTOP STYLES */
@media (min-width: 992px) {
    .login-image-side {
        display: block;
    }
    .login-form-side {
        width: 50%;
    }
}
