:root {
--cgi-red: #e31937;
--cgi-purple: #5236AB;
--cgi-purple-dark: #200A58;
--cgi-purple-vivid: #9E83F5;
--primary: var(--cgi-purple);
--accent: var(--cgi-red);
--text-primary: #151515;
--text-secondary: #333333;
--gray-bg: #F8F8F8;
--gray-hero: #EFEFEF;
--gray-action-bg: #E8E8E8;
--gray-200: var(--gray-action-bg);
--gray-300: #D1D1D1;
--gray-500: #A8A8A8;
--gray-600: #808080;
--gray-700: var(--text-secondary);
--gray-900: var(--text-primary);
--surface: #FFFFFF;
--font-main: 'Source Sans Pro', sans-serif;
}

/* Login Page - Split Screen Layout */
.login-page {
min-height: 100vh;
margin: 0;
padding: 0;
font-family: var(--font-main);
overflow: hidden;
}

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

/* Left Panel: Form (35-45% width) */
.login-form-panel {
flex: 0 0 50%;
background: var(--surface);
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
position: relative;
}

.login-form-wrapper {
width: 100%;
max-width: 420px;
margin: 0 auto;
}

.login-logo {
margin-bottom: 2rem;
text-align: left;
}

.cgi-logo-img {
height: 150px;
width: auto;
display: block;
margin: 0 auto;

}

.login-title {
font-size: 28px;
font-weight: 500;
color: var(--text-secondary);
margin: 0 0 2.5rem 0;
font-family: var(--font-main);
line-height: 1.3;
text-align: center;
}

/* Form Styles */
.login-form {
margin-top: 0;
}

.form-group {
margin-bottom: 1rem;
}

.form-label {
display: block;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 0.5rem;
font-family: var(--font-main);
font-size: 14px;
}

.form-control {
width: 100%;
padding: 0.875rem 1rem;
height: 44px;
border: 1px solid var(--gray-300);
border-radius: 6px;
font-size: 16px;
font-family: var(--font-main);
color: var(--text-primary);
background: var(--surface);
transition: all 0.2s ease;
box-sizing: border-box;
}

.form-control::placeholder {
color: var(--gray-500);
}

.form-control:focus {
border-color: var(--cgi-purple);
box-shadow: 0 0 0 3px rgba(82, 54, 171, 0.1);
outline: none;
}

/* Remember Me Checkbox */
.remember-me-group {
margin-bottom: 1rem;
margin-top: 0.5rem;
}

.remember-me-label {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
font-size: 14px;
color: var(--text-secondary);
font-family: var(--font-main);
user-select: none;
}

.remember-me-checkbox {
width: 18px;
height: 18px;
cursor: pointer;
accent-color: var(--cgi-purple);
flex-shrink: 0;
}

.remember-me-checkbox:checked {
accent-color: var(--cgi-purple);
}

.remember-me-text {
font-weight: 400;
color: var(--text-secondary);
}

/* Login Button - Red CGI */
.btn-login {
width: 100%;
height: 44px;
background-color: var(--cgi-red);
border: none;
border-radius: 6px;
color: white;
font-weight: 600;
font-size: 16px;
font-family: var(--font-main);
margin-top: 1.5rem;
cursor: pointer;
transition: all 0.2s ease;
}

.btn-login:hover {
background-color: #c4162f;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(227, 25, 55, 0.3);
}

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

/* Links */
.login-links {
margin-top: 1.5rem;
text-align: center;
}

.login-link {
color: var(--gray-600);
text-decoration: none;
font-size: 14px;
font-family: var(--font-main);
transition: color 0.2s;
}

.login-link:hover {
color: var(--cgi-purple);
text-decoration: underline;
}

/* Right Panel: Hero Image (55-65% width) */
.login-hero-panel {
flex: 0 0 60%;
position: relative;
background: linear-gradient(135deg, var(--cgi-purple-dark) 0%, var(--cgi-purple) 50%, #6e3fed 100%);
overflow: hidden;
}

.login-hero-image {
width: 100%;
height: 100%;
background: 
linear-gradient(135deg, var(--cgi-purple-dark) 0%, var(--cgi-purple) 50%, #6e3fed 100%);
background-size: cover;
background-position: center;
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

/* Robot Image */
.login-hero-image::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background-image: url('/assets/login-robot.png');
background-size: auto 100%;
background-position: center right;
background-repeat: no-repeat;
opacity: 0.95;
z-index: 1;
}

/* Subtle overlay for depth */
.login-hero-image::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: 
radial-gradient(circle at 70% 50%, rgba(158, 131, 245, 0.15) 0%, transparent 60%),
radial-gradient(circle at 30% 50%, rgba(110, 63, 237, 0.1) 0%, transparent 50%);
z-index: 0;
}

/* Alerts */
.alert {
border-radius: 6px;
padding: 0.75rem 1rem;
margin-bottom: 1.5rem;
font-size: 14px;
font-family: var(--font-main);
}

.alert-danger {
background-color: rgba(176, 0, 32, 0.1);
border: 1px solid rgba(176, 0, 32, 0.3);
color: #b00020;
}

.alert-success {
background-color: rgba(26, 185, 119, 0.1);
border: 1px solid rgba(26, 185, 119, 0.3);
color: #1AB977;
}

.alert i {
margin-right: 0.5rem;
}

/* Responsive: Mobile */
@media (max-width: 992px) {
.login-split-container {
flex-direction: column;
}

.login-form-panel {
flex: 1 1 100%;
min-height: 100vh;
padding: 2rem 1.5rem;
}

.login-hero-panel {
display: none;
}

.login-form-wrapper {
max-width: 100%;
}
}

/* Responsive: Small screens */
@media (max-width: 576px) {
.login-form-panel {
padding: 1.5rem 1rem;
}

.login-title {
font-size: 24px;
margin-bottom: 2rem;
}

.cgi-logo-img {
height: 40px;
}
}
