/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container styling */
.registration-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Typography */
h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form group styling */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

/* Input styling */
input[type="text"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Error handling */
.error-messages {
    background-color: #ffebee;
    color: #dc3545;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    list-style-position: inside;
}

.error-messages strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Success message */
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Submit button */
button[type="submit"] {
    width: 100%;
    padding: 0.875rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

    /* Progress bar styling */
    .progress-bar {
        width: 100%;
        height: 10px;
        background-color: #f0f0f0;
        border-radius: 5px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .progress {
        width: 0%;
        height: 100%;
        background-color: #4CAF50;
        transition: width 1s linear;
    }

    .progress-text {
        display: block;
        text-align: center;
        color: #666;
        font-size: 14px;
    }

        .success-message {
            background-color: #dff0d8;
            border-color: #d6e9c6;
            color: #3c763d;
            padding: 15px;
            border-radius: 4px;
            text-align: center;
        }

        .hidden {
            display: none;
        }

        #waiting-sync {
            text-align: center;
            padding: 20px;
            background-color: #f5f5f5;
            border-radius: 4px;
        }

/* Responsive design */
@media (max-width: 480px) {
    .registration-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}