.login-page {
    min-height: 85vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Left Side - Login Form */
.login-card {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Form Styles */
.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #667eea;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

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

.form-input::placeholder {
    color: #a0a4a8;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 8px 12px;
    background: #fdf2f2;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
}

.non-field-errors {
    margin-bottom: 20px;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
}

.register-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Right Side - Decoration */
.login-decoration {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.decoration-content {
    text-align: center;
    max-width: 400px;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 3rem;
}

.app-name {
    font-size: 2rem;
    font-weight: 700;
}

.decoration-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.decoration-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Icons (using Unicode as fallback) */
.icon-user::before {
    content: "👤";
}

.icon-lock::before {
    content: "🔒";
}

.icon-arrow::before {
    content: "→";
}

/* Добавить к существующему CSS */
.icon-email::before {
    content: "📧";
}

/* Стили для хелп-текста пароля */
.helptext {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Улучшенные стили для ошибок */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.errorlist li {
    color: #e74c3c;
    font-size: 0.85rem;
    padding: 8px 12px;
    background: #fdf2f2;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
    margin-bottom: 5px;
}

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

    .login-decoration {
        display: none;
    }

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

    .login-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 10px;
    }

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

    .login-header h1 {
        font-size: 1.6rem;
    }

    .form-input {
        padding: 12px 15px;
    }

    .login-button {
        padding: 14px;
    }
}