/* إعدادات المتصفح الأساسية لتطابق الـ Pixel Perfect */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- تنسيق الشريط العلوي (Navbar) --- */
.navbar {
    background-color: #092254;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    height: 103px;
    border-radius: 99px;
    border: 1px solid #00000008;
    width: 90%;
    margin: 15px auto 0px auto;
}
.nav-right{
    width: 70%;
    justify-content: space-between;
}
.nav-right, .nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: space-between;
    width: 80%;
}

.nav-links a {
   color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
     color: #b0c4de;
}

.nav-links i {
    font-size: 10px;
    margin-right: 5px;
}

/* أزرار النافبار */
.btn-login {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-register {
    background-color: #f7a416;
    border: none;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.search-icon {
    color: #f7a416;
    cursor: pointer;
    font-size: 16px;
}

/* --- تنسيق الحاوية الرئيسية والبطاقة --- */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.card-wrapper {
    width: 80%;
    max-width: 80%;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- تنسيق قسم الفورم (الأيمن) --- */
.form-section {
    /* padding: 40px 60px; */
        padding: 40px 40px;

    border: 1px solid #00000012;
    border-radius: 10px;
    background-color: #FEFEFE;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-section h2 {
    color: #032472;
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.form-section .subtitle {
    color: #0600009E;
    font-size: 23px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #131728;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input, .input-wrapper select {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 1px solid #00000008;
    background-color: #FAFAFA;
    border-radius: 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

.input-wrapper input:focus, .input-wrapper select:focus {
    border-color: #cbd5e1;
}
input::placeholder,.input-wrapper select::placeholder{
    color: #31025F69;
    font-size: 14px;
    font-weight: 500;
}

.input-icon {
    position: absolute;
    right: 15px;
    color: #94a3b8;
    font-size: 16px;
}

.toggle-password {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    cursor: pointer;
}

.input-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 20px;
}

.terms-container {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    gap: 7px;
}
.checkbox-label div{
display: flex;
align-items: center;
gap: 5px;
}
input[type="checkbox"] {
    appearance: none;
    width: 25px;
    height: 25px;
    border: 2px solid #BFBFBF;
    border-radius: 10px;
    cursor: pointer;
     position: relative;
    display: inline-block;
}
input[type="checkbox"]:checked {
    background-color: #ffc107;
    border-color: #ffc107;
    z-index: 2;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.checkbox-label a {
    color: #3b82f6;
    text-decoration: none;
}
.btn-submit {
    width: 100%;
    background-color: #f7a416;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #e09210;
}

.btn-submit:focus-visible {
    outline: 3px solid rgba(247, 164, 22, 0.35);
    outline-offset: 3px;
}

.register-submit {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #0d234c;
    font-weight: 600;
}

.form-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.welcome-section {
    background-color: #F7F9FD;
    display: flex;
    flex-direction: column;
    justify-content:center;
    padding: 19px 35px 44px 29px;
    text-align: center;
    position: relative;
    border: 1px solid #00000012;
    border-radius: 10px;
}

.welcome-text {
    margin-top: 20px;
    margin-bottom: 30px;
}

.welcome-text h3 {
    color: #0C174E;
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-text h1 {
    color: #032472;
    font-size: 40px;
    font-weight: 900;
    line-height: 44px;
}

.welcome-text h1 span {
    color: #f7a416;
}

.welcome-text p {
    color: #384972;
    font-size: 23px;
    font-weight: 300;
    margin-top: 5px;
}

.image-holder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.image-holder img {
    max-width: 85%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .card-wrapper {
        grid-template-columns: 1fr;
    }
    .welcome-section {
        display: none; 
    }
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; 
    }
    .form-section {
        padding: 30px 20px;
    }
    .main-container{
        padding-left: 0px;
        padding-right: 0px;
    }
}
