.path-user .layout-container,
.user-login-form {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main login form wrapper */
.user-login-form,
.block-user-login-block .content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    margin: 0 auto;
}

/* Animated top border */
.user-login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Form title styling */
.user-login-form h1,
.user-login-form .form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

/* Form field groups */
.user-login-form .form-item,
.user-login-form .js-form-item {
    position: relative;
    margin-bottom: 25px;
}

/* Input field styling */
.user-login-form input[type="text"],
.user-login-form input[type="email"],
.user-login-form input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #333;
    box-sizing: border-box;
}

.user-login-form input[type="text"]:focus,
.user-login-form input[type="email"]:focus,
.user-login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Label styling */
.user-login-form .form-item label,
.user-login-form .js-form-item label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* Description text styling */
.user-login-form .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Submit button styling */
.user-login-form input[type="submit"],
.user-login-form .button--primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.user-login-form input[type="submit"]:hover,
.user-login-form .button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Shine effect on button hover */
.user-login-form input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.user-login-form input[type="submit"]:hover::before {
    left: 100%;
}

/* Error messages styling */
.user-login-form .messages--error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Success messages styling */
.user-login-form .messages--status {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Remember me checkbox styling */
.user-login-form input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #667eea;
    margin-right: 8px;
}

/* Links styling (forgot password, register, etc.) */
.user-login-form a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-login-form a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Required field indicator */
.user-login-form .form-required {
    color: #e74c3c;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .user-login-form {
        padding: 30px 20px;
        margin: 10px;
    }

    .user-login-form h1,
    .user-login-form .form-title {
        font-size: 24px;
    }
}

/* Remove default Drupal form styling that might conflict */
.user-login-form .form-actions {
    margin-top: 20px;
}

.user-login-form .form-item {
    margin: 0 0 25px 0;
}

/* Style the login block if used in sidebar or other regions */
.block-user-login-block {
    border: none;
    background: transparent;
}

.block-user-login-block .block-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Additional styling for social login buttons if you have modules like Social API */
.user-login-form .social-auth-links {
    margin-top: 20px;
    text-align: center;
}

.user-login-form .social-auth-links .social-auth-link {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-login-form .social-auth-links .social-auth-link:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}
