body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #ffffff; /* الصفحة بيضاء بالكامل */
    font-family: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* الصفحة كلها قابلة للنقر */
}

.heading {
    font-size: clamp(14px, 4vw, 16px); /* حجم خط ديناميكي يتناسب مع الموبايل والكمبيوتر */
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
    padding: 0 15px;
}

/* التصميم المطابق لـ Google reCAPTCHA ومتوافق مع جميع الشاشات */
.g-recaptcha {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    box-shadow: 0 0 4px 1px rgba(0,0,0,0.08);
    width: 90%;          /* يأخذ 90% في شاشات الموبايل الصغيرة جداً */
    max-width: 304px;    /* يتوقف تمدده عند حجم جوجل الرئيسي في الشاشات الأكبر */
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.rc-checkbox {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.2s;
}

.g-recaptcha:hover .rc-checkbox {
    border-color: #b2b2b2;
}

.rc-text {
    font-size: 14px;
    color: #4a4a4a;
    margin-left: 12px;
    margin-right: auto; /* يجعل اللوجو يذهب لأقصى اليمين */
    user-select: none;
}

.rc-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rc-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.rc-logo-text {
    color: #555555;
    font-size: 10px;
}

.rc-logo-terms {
    color: #555555;
    font-size: 8px;
    margin-top: 1px;
}

/* لودنج يشبه لودنج جوجل */
.spinner {
    border: 3px solid transparent;
    border-top: 3px solid #4285f4;
    border-right: 3px solid #4285f4;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: none;
}

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