:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --accent-color: #4895ef;
    --danger-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #2b2d42;
    --gray-color: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-wrapper {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.login-card {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.logo i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.footer-links {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot-password {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-color);
}

.login-illustration {
    flex: 1;
    background-color: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-illustration img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-card {
        padding: 2rem;
    }

    .login-illustration {
        display: flex;
        padding: 1.5rem;
        order: 2;
    }

    .login-illustration img {
        max-width: 300px;
        margin: 0 auto;
    }
}

