﻿body {
    background-color: #fff9f0;
    font-family: 'Cairo', sans-serif;
}

h3 {
    text-align: center;
    color: #333;
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: bold;
}

.form-container {
    max-width: 430px;
    margin: 0 auto;
    background-color: #fffaf2;
    padding: 30px 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid #ffe0b2;
    box-sizing: border-box;
}

.input-box {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    margin: 15px 0;
    border: 2px solid #ffd180;
    border-radius: 12px;
    font-size: 17px;
    background-color: #fffefc;
    transition: border 0.3s, box-shadow 0.3s;
}

    .input-box:focus {
        outline: none;
        border-color: #ffa726;
        box-shadow: 0 0 8px rgba(255, 167, 38, 0.3);
        background-color: #fff8ef;
    }

/* ✅ intl-tel-input تكامل مكتبة */
.intl-tel-input {
    width: 100%;
    direction: ltr;
    font-family: 'Cairo', sans-serif;
}

    .intl-tel-input input {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 17px !important;
        border: 2px solid #ffd180 !important;
        border-radius: 12px !important;
        background-color: #fffefc !important;
        font-family: 'Cairo', sans-serif !important;
        box-sizing: border-box;
        direction: rtl;
        text-align: right;
        height: auto !important;
    }

        .intl-tel-input input:focus {
            outline: none !important;
            border-color: #ffa726 !important;
            box-shadow: 0 0 8px rgba(255, 167, 38, 0.3);
            background-color: #fff8ef !important;
        }

    .intl-tel-input .selected-flag {
        background-color: #fff3e0;
        border-radius: 12px 0 0 12px;
        border-right: 1px solid #ffd180;
        padding: 6px 10px;
    }

    .intl-tel-input .flag-container {
        border-radius: 12px 0 0 12px;
    }

/* ✅ تصميم قائمة الدولة */
.iti__country-list {
    z-index: 9999;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    direction: ltr;
    text-align: left;
    background-color: white;
}

.iti__country {
    padding: 10px 12px;
    transition: background-color 0.2s ease;
}

    .iti__country:hover {
        background-color: #fff3e0;
    }

.iti__arrow {
    margin-left: 6px;
}

/* ✅ حل مشكلة عدم ظهور الأعلام */
.iti__flag {
    background-image: url("/lib/intl-tel-input/img/flags.png") !important;
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: 20px 0;
    background-size: 5630px 15px;
}

/* ✅ إزالة الأسهم من مربع رقم الهاتف */
input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="tel"] {
    -moz-appearance: textfield;
}

/* ✅ زر التسجيل */
.btn {
    width: 100%;
    background-color: #ff7043;
    color: white;
    padding: 12px;
    margin-top: 10px;
    font-size: 17px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .btn:hover {
        background-color: #f4511e;
    }

p {
    margin: 10px 0;
    font-size: 15px;
    font-weight: bold;
    color: #444;
}

.form-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

    .form-message.error {
        background-color: #ffebee;
        color: #d32f2f;
        border: 1px solid #f44336;
    }

    .form-message.success {
        background-color: #e8f5e9;
        color: #388e3c;
        border: 1px solid #4caf50;
    }

.secondary-action {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

    .secondary-action .link {
        color: #ff7043;
        text-decoration: none;
        font-weight: bold;
        margin-right: 5px;
    }

        .secondary-action .link:hover {
            text-decoration: underline;
        }

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #333;
}

    .remember-me input[type="checkbox"] {
        margin-left: 8px;
        transform: scale(1.3);
    }

.form-container {
    max-width: 400px;
    margin: 2rem auto;
    background: #fff3e0; /* نفس لون البطاقات */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
}

    .form-container .btn {
        background-color: #ff7043; /* نفس لون الزر في التصميم الرئيسي */
        color: white;
        width: 100%;
        padding: 0.75rem;
        border: none;
        border-radius: 8px;
    }

.error {
    color: #d32f2f;
    margin-bottom: 1rem;
}

/* ... وغيرها من التنسيقات لتوائم الهوامش والخطوط */
