/* Custom User Registration Plugin Styles */

.ngcu-registration-form,
.ngcu-login-form,
.ngcu-user-profile {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ngcu-registration-form h2,
.ngcu-login-form h2,
.ngcu-user-profile h2 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-size: 28px;
}

.ngcu-form-row {
    margin-bottom: 20px;
}

.ngcu-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.ngcu-form-row input[type="text"],
.ngcu-form-row input[type="email"],
.ngcu-form-row input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ngcu-form-row input[type="text"]:focus,
.ngcu-form-row input[type="email"]:focus,
.ngcu-form-row input[type="password"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.ngcu-form-row input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.cur-submit-btn,
.cur-btn {
    width: 100%;
    padding: 14px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.cur-submit-btn:hover,
.cur-btn:hover {
    background: #45a049;
}

.cur-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cur-btn-secondary {
    background: #666;
    margin-top: 10px;
}

.cur-btn-secondary:hover {
    background: #555;
}

.cur-form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.cur-form-footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.cur-form-footer a:hover {
    text-decoration: underline;
}

/* Messages */
.cur-form-message {
    margin: 20px 0;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
}

.cur-form-message.show {
    display: block;
}

.cur-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cur-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cur-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.cur-message.cur-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.cur-message.cur-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* User Profile */
.cur-profile-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.cur-profile-avatar {
    margin-right: 30px;
}

.cur-profile-avatar img {
    border-radius: 50%;
    border: 3px solid #4CAF50;
}

.cur-profile-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 24px;
}

.cur-profile-details p {
    margin: 8px 0;
    color: #666;
    font-size: 15px;
}

.cur-profile-actions {
    display: flex;
    gap: 15px;
}

.cur-profile-actions .cur-btn {
    width: auto;
    flex: 1;
}

/* Loading Spinner */
.cur-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: cur-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes cur-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .ngcu-registration-form,
    .ngcu-login-form,
    .ngcu-user-profile {
        margin: 20px;
        padding: 20px;
    }
    
    .cur-profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .cur-profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .cur-profile-actions {
        flex-direction: column;
    }
}