/* Enhanced User Manager - Nexo-inspired Design */
.eum-container {
    max-width: 440px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.eum-form {
    margin-top: 0;
}

.eum-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.eum-form-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.eum-form-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.eum-field-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.eum-field {
    margin-bottom: 0;
}

.eum-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.95rem;
}

.eum-field input,
.eum-field select,
.eum-field textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fafafa;
    color: #2d3748;
    box-sizing: border-box;
}

.eum-field input:focus,
.eum-field select:focus,
.eum-field textarea:focus {
    outline: none;
    border-color: #0066ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    transform: translateY(-1px);
}

.eum-field input::placeholder,
.eum-field textarea::placeholder {
    color: #a0aec0;
}

.eum-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Field */
.eum-checkbox-field {
    margin: 1rem 0;
}

.eum-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
}

.eum-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.eum-checkbox input[type="checkbox"]:checked {
    background-color: #0066ff;
    border-color: #0066ff;
}

.eum-checkbox-label {
    font-weight: normal;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Buttons - Nexo-inspired */
.eum-button {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    margin: 0.5rem 0;
}

.eum-button:hover {
    background: linear-gradient(135deg, #0052cc 0%, #0047b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.eum-button:active {
    transform: translateY(0);
}

/* Secondary Button */
.eum-button-secondary {
    background: transparent;
    color: #0066ff;
    border: 2px solid #e2e8f0;
}

.eum-button-secondary:hover {
    background: #f7f9fc;
    border-color: #0066ff;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.15);
}

/* Form Footer */
.eum-form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaeaea;
}

.eum-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    margin-top: 1.5rem;
}

.eum-forgot-link,
.eum-register-link,
.eum-login-link {
    font-size: 0.95rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.eum-forgot-link:hover,
.eum-register-link a:hover,
.eum-login-link a:hover {
    color: #0066ff;
    text-decoration: underline;
}

/* Messages */
.eum-message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.eum-success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #c6f6d5;
}

.eum-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* Password Strength Meter */
.eum-password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.strength-very-weak { background: #fff5f5; color: #c53030; }
.strength-weak { background: #fed7d7; color: #9b2c2c; }
.strength-medium { background: #feebcb; color: #744210; }
.strength-strong { background: #c6f6d5; color: #2f855a; }
.strength-very-strong { background: #9ae6b4; color: #22543d; }

/* Responsive Design */
@media (max-width: 480px) {
    .eum-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .eum-form-header h3 {
        font-size: 1.5rem;
    }
    
    .eum-button {
        padding: 0.875rem 1.5rem;
    }
}

/* Loading Animation */
.eum-loading {
    position: relative;
    opacity: 0.8;
    pointer-events: none;
}

.eum-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: eum-spin 0.8s linear infinite;
}

@keyframes eum-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Additional Nexo-inspired elements */
.eum-legal-text {
    font-size: 0.8rem;
    color: #a0aec0;
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.4;
}

.eum-legal-text a {
    color: #0066ff;
    text-decoration: none;
}

.eum-legal-text a:hover {
    text-decoration: underline;
}

/* Two-column layout for larger forms */
@media (min-width: 768px) {
    .eum-field-group-two-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Focus states for accessibility */
.eum-field input:focus-visible,
.eum-field select:focus-visible,
.eum-field textarea:focus-visible,
.eum-button:focus-visible {
    outline: 2px solid #0066ff;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .eum-container {
        background: #1a202c;
        border-color: #2d3748;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .eum-field input,
    .eum-field select,
    .eum-field textarea {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .eum-field label {
        color: #e2e8f0;
    }
    
    .eum-form-footer {
        border-color: #2d3748;
    }
}