/* Color Palette based on design */
:root {
    --primary: #1E66E5;
    --primary-hover: #164DB1;
    --bg-light: #F4F7FE;
    --text-main: #2B3674;
    --text-muted: #A3AED0;
    --white: #FFFFFF;
    --border: #E0E5F2;
    --danger: #E24C4C;
    --success: #05CD99;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* LOGIN LAYOUT (split screen) */
.login-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.login-left {
    flex: 1.2;
    background: linear-gradient(135deg, #1E66E5 0%, #164DB1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: rotate 60s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    width: 80%;
    height: 100%;
    padding: 2rem;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 40px;
    left: 40px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.branding-message {
    color: var(--white);
    margin-top: 60px;
}

.branding-message h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.branding-message p {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 450px;
    line-height: 1.6;
}

.login-right {
    flex: 1;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

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

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

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-error {
    background-color: rgba(226, 76, 76, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 102, 229, 0.1);
}

/* Custom Checkbox */
.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    color: var(--text-main);
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

.btn-primary {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(30, 102, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 102, 229, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}
/* Layout global and Dashboard rules to come... */
