﻿
.register-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    top:10px;
    width: 100%;
    box-sizing: border-box;
  /*  text-align: center;*/
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .register-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .register-container h1 {
        margin-bottom: 20px;
        color: #ec4798;
        font-size: 26px;
        font-weight: bold;
    }

    .register-container label {
        display: block;
        margin-bottom: 8px;
        font-size: 16px;
        color: #555;
        text-align: center;
    }

    .register-container input {
        width: calc(100% - 20px);
        padding: 12px;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 16px;
        text-align: center;
    }

    .register-container button {
        width: 100%;
        padding: 12px;
        background-color: #006400;
        border: none;
        border-radius: 4px;
        color: #ffffff;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .register-container button:hover {
            background-color: #004d00;
        }

    .register-container p {
        margin-top: 10px;
        font-size: 14px;
        color: #333;
    }

    .register-container a {
        color: #ec4899;
        text-decoration: none;
    }

        .register-container a:hover {
            text-decoration: underline;
        }
/* إظهار الرسالة الخطأ أسفل النموذج */
.error-message {
    background-color: #ffdddd;
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 10px 20px; /* أضف بعض التباعد الإضافي من اليمين واليسار */
    border-radius: 4px;
    margin-top: 20px;
    display: none; /* لتجنب عرض الرسالة بشكل افتراضي */
    text-align: left;
    position: relative;
}

    /* إضافة الأيقونة إلى الرسالة الخطأ */
    .error-message::before {
        content: '\f06a'; /* رمز Font Awesome للتنبيه */
        font-family: 'Font Awesome 5 Free'; /* تأكد من تضمين مكتبة Font Awesome */
        font-weight: 900;
        color: #ff0000;
        margin-right: 10px;
        font-size: 18px;
        vertical-align: middle;
    }

    /* تحسين التباعد بين الرسالة وعناصر النص */
    .error-message p {
        margin: 0;
        font-size: 14px;
        display: flex;
        align-items: center;
    }
/* container */
.gender-radio {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    font-family: 'Tajawal', sans-serif;
}

    /* hide default radio */
    .gender-radio input[type="radio"] {
        display: none;
    }

    /* label style */
    .gender-radio label {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 30px;
        border-radius: 50px;
        border: 2px solid #0d6efd;
        color: #0d6efd;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: #fff;
        min-width: 120px;
    }

        /* hover */
        .gender-radio label:hover {
            background-color: #f0f6ff;
            transform: translateY(-2px);
        }

    /* checked state */
    .gender-radio input[type="radio"]:checked + label {
        background-color: #0d6efd;
        color: #fff;
        box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    }

    /* optional icons */
    .gender-radio label::before {
        margin-left: 8px;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    .gender-radio label[for*="0"]::before {
        content: "\f183"; /* male icon */
    }

    .gender-radio label[for*="1"]::before {
        content: "\f182"; /* female icon */
    }
.error-message {
    background: #ffe6e6;
    color: #b30000;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.test-radio {
    font-family: 'Tajawal', sans-serif;
    margin: 20px 0;
}

    .test-radio td {
        padding: 8px 12px;
    }

    /* hide default radio */
    .test-radio input[type="radio"] {
        display: none;
    }

    /* label style */
    .test-radio label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 26px;
        border-radius: 40px;
        border: 2px solid #0d6efd;
        color: #0d6efd;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        background-color: #fff;
        min-width: 120px;
    }

    /* checked */
    .test-radio input[type="radio"]:checked + label {
        background-color: #0d6efd;
        color: #fff;
    }
@media (max-width: 768px) {

    /* تحويل table إلى block */
    .test-radio,
    .test-radio tbody,
    .test-radio tr {
        display: block;
        width: 100%;
    }

        /* كل اختيار في سطر */
        .test-radio td {
            display: block;
            width: 100%;
            padding: 6px 0;
        }

        .test-radio label {
            width: 100%;
            min-width: unset;
            padding: 14px;
            font-size: 1rem;
            text-align: center;
        }
}

