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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.login-form {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 450px;
}

.logo {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.logo::after {
    content: "★";
    color: white;
    font-size: 20px;
}

.welcome-text {
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.welcome-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    user-select: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.checkbox-wrapper label {
    margin: 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.illustration {
    flex: 1;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    position: relative;
    overflow: hidden;
    max-height: 540px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 400px;
    }

    .illustration {
        min-height: 200px;
        order: -1;
    }

    .login-form {
        padding: 40px 30px;
    }

    .welcome-text h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-form {
        padding: 30px 20px;
    }

    .welcome-text h1 {
        font-size: 22px;
    }
}

/* Django form error styles */
.errorlist {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
}

.errorlist li {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

.form-group.error input {
    border-color: #e74c3c;
    background-color: #fff5f5;
}
