/* أساسيات التصميم */
body {
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    overflow: auto;
}

.register-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 450px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 25px;
    position: relative;
}

h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #007bff;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

label {
    display: block;
    text-align: left;
    margin-top: 15px;
    font-weight: 500;
    color: #555;
}

input, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.back-btn {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.error {
    color: #e74c3c;
    margin: 10px 0;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.checkbox-container input {
    width: auto;
    margin-right: 10px;
}

.welcome-message, .congrats-message {
    font-size: 16px;
    color: #2ecc71;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in;
}

.quote {
    font-style: italic;
    color: #777;
    font-size: 14px;
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid #007bff;
    border-radius: 5px;
    animation: fadeIn 1s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.icon {
    margin-right: 8px;
    color: #007bff;
}

.lottie-animation {
    width: 100px;
    margin: 0 auto;
    display: block;
}

/* إضافة أنماط لإخفاء وإظهار حقول الروابط */
.hidden {
    display: none;
}