
/* Registration & Authentication UX Improvements */

/* Better form styling */
.signup-form,
.login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Clear error messages */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.errorlist li {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1.25rem;
    border: 1px solid #f5c6cb;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Better button states */
.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Loading states */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.form-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password strength indicator */
.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.password-strength.weak { background-color: #dc3545; width: 33%; }
.password-strength.medium { background-color: #ffc107; width: 66%; }
.password-strength.strong { background-color: #28a745; width: 100%; }

/* Social login buttons */
.social-login-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.social-login-buttons .btn {
    margin-bottom: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 576px) {
    .signup-form,
    .login-form {
        margin: 1rem;
        padding: 1rem;
    }
}
