:root {
    --primary-color: #1E56A0;
    --primary-light: #3A7BD5;
    --secondary-color: #163172;
    --accent-color: #D6E4F0;
    --text-color: #333333;
    --error-color: #D64045;
    --success-color: #3AB795;
    --background-color: #F5F7FA;
    --white: #FFFFFF;
    --gray-100: #F5F7FA;
    --gray-200: #E4E7EB;
    --gray-300: #CBD2D9;
    --gray-400: #9AA5B1;
    --gray-500: #7B8794;
    --gray-600: #616E7C;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Login Container */
.login-container {
    flex: 1;
    max-width: 450px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 12px;
}

h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Login Form */
.login-form-container {
    margin: 40px 0;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.15);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 42px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23616E7C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle.visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23616E7C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21' /%3E%3C/svg%3E");
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input[type="checkbox"] {
    margin-right: 8px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.remember input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember label {
    margin-bottom: 0;
    font-size: 14px;
    cursor: pointer;
}

.forgot {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login-btn:hover {
    background-color: var(--primary-light);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-message {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.login-message.error {
    color: var(--error-color);
}

.login-message.success {
    color: var(--success-color);
}

/* Footer */
.footer {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
}

.footer a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Background Container */
.background-container {
    flex: 2;
    background-image: url('https://images.unsplash.com/photo-1581093458791-9d8be5fbcd65?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 86, 160, 0.8), rgba(22, 49, 114, 0.6));
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .login-container {
        max-width: 100%;
        order: 2;
        padding: 30px 20px;
        box-shadow: none;
    }
    
    .background-container {
        height: 200px;
        order: 1;
    }
}
