/* TP User Manager Plugin Styles */

.user-signup-form-container,
.user-signin-form-container,
.user-profile-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-form {
    margin: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.form-group input.invalid {
    border-color: #dc3232;
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.1);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background-color: #005a87;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.form-group {
    position: relative;
}

.toggle-password:hover {
    color: #0073aa;
}

.password-strength {
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.password-strength.weak {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.password-strength.medium {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.password-strength.strong {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-messages {
    margin-top: 15px;
}

.form-messages.error p {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    margin: 0;
}

.form-messages.success p {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 10px;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    margin: 0;
}

/* User Profile Styles */
.user-profile-container {
    text-align: center;
}

.user-avatar {
    margin-bottom: 20px;
}

.user-avatar img {
    border-radius: 50%;
    border: 3px solid #0073aa;
}

.user-info {
    margin-bottom: 20px;
    text-align: left;
}

.user-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
}

.user-info p {
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.user-info p:last-child {
    border-bottom: none;
}

.user-actions {
    text-align: center;
}

.logout-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3232;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #a00;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 480px) {
    .user-signup-form-container,
    .user-signin-form-container,
    .user-profile-container {
        margin: 10px;
        padding: 15px;
        max-width: none;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 8px 10px;
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 14px;
    }
}

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

.submit-btn:disabled:after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}