﻿/* ==================== إعدادات عامة ==================== */

body {
    font-family: 'Cairo', sans-serif;
  /*  background-color: #f4f7fb;*/
    margin: 0;
    padding: 0;
    direction: rtl; /* لأن الصفحة بالعربي */
    /* لو النافبار ثابت يمين 250px */
    /* padding-right: 250px; */ /* يحجز مساحة للنافبار */
    box-sizing: border-box;
}
    /* ==================== تنسيق خاص بصفحة التسجيل ==================== */
    .register-page-active {
       
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 90vh;
        position: relative;
        overflow: hidden;
    }

        /* تأثير الخلفية */
        .register-page-active::before,
        body.register-page-active::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
            animation: floatBackground 15s ease-in-out infinite;
        }

        .register-page-active::after {
            background: radial-gradient(circle, rgba(139, 195, 74, 0.06) 0%, transparent 70%);
            animation-duration: 20s;
            animation-direction: reverse;
        }

@keyframes floatBackground {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

/* ==================== صندوق التسجيل ==================== */
.register-page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.register-container {
    background: #fff;
    padding: 50px;
    width: 70%; 
    max-width: 900px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.1);
    animation: fadeInUp 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== الشعار ==================== */
.header-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.logo-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.35);
    animation: rotateGlow 3s ease-in-out infinite;
}

@keyframes rotateGlow {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.35);
    }

    50% {
        transform: rotate(5deg) scale(1.05);
        box-shadow: 0 12px 35px rgba(76, 175, 80, 0.5);
    }
}

.logo-circle i {
    font-size: 2.8rem;
    color: #fff;
}

.logo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

.header-image {
    width: 200%;
    max-width: 380px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(76, 175, 80, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* ==================== العناوين ==================== */
h2 {
    color: #2e7d32;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    color: #66bb6a;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

/* ==================== الحقول ==================== */
.input-group-custom {
    position: relative;
    margin-bottom: 22px;
}

.icon-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 58px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 2px solid #a5d6a7;
}

    .icon-wrapper i {
        color: #4caf50;
        font-size: 1.2rem;
    }

.form-control {
    border: 2px solid #c8e6c9;
    border-radius: 12px;
    padding: 18px 20px 18px 65px;
    font-size: 1rem;
    background: #f1f8e9;
    color: #2e7d32;
    transition: all 0.3s ease;
    font-weight: 500;
    height: 58px;
}

    .form-control:focus {
        border-color: #4caf50;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
        outline: none;
    }

/* ==================== الزر ==================== */
.btn-register {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.35);
    position: relative;
    overflow: hidden;
}

    .btn-register::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-register:hover::before {
        width: 400px;
        height: 400px;
    }

    .btn-register:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(76, 175, 80, 0.45);
    }

/* ==================== روابط إضافية ==================== */
.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e8f5e9;
}

    .login-link a {
        color: #4caf50;
        font-weight: 700;
        text-decoration: none;
        position: relative;
        transition: all 0.3s ease;
    }

        .login-link a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: 0;
            width: 0;
            height: 2px;
            background: #4caf50;
            transition: width 0.3s ease;
        }

        .login-link a:hover::after {
            width: 100%;
        }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .register-container {
        padding: 35px 30px;
        border-radius: 25px;
    }

    .form-control {
        height: 54px;
        padding: 16px 18px 16px 60px;
    }

    .icon-wrapper {
        width: 45px;
        height: 54px;
    }

    .btn-register {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    body.register-page-active {
        padding: 15px;
    }

    .register-container {
        padding: 30px 25px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .form-control {
        height: 50px;
        font-size: 0.95rem;
        padding: 14px 15px 14px 55px;
    }

    .icon-wrapper {
        width: 42px;
        height: 50px;
    }
}
/* ==================== زر إظهار/إخفاء كلمة المرور داخل الحقل ==================== */
.password-group {
    position: relative;
}

    .password-group .toggle-password {
        position: absolute;
        top: 50%;
        left: 15px; /* المسافة من يمين الحقل */
        transform: translateY(-50%);
        background: #e8f5e9;
        border: 1px solid #4caf50;
        border-radius: 8px;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #4caf50;
        transition: all 0.3s ease;
    }

        .password-group .toggle-password:hover {
            background: #4caf50;
            color: #fff;
        }

    .password-group .form-control.password-input {
        padding-right: 65px; /* لتجنب تداخل النص مع الزر */
    }
/* ==================== Responsive إضافي للهاتف والآيباد ==================== */

/* الآيباد (768px - 1024px) */
@media (max-width: 1024px) {
    .register-container {
        width: 85%;
        padding: 40px 35px;
    }

    .form-control {
        height: 54px;
        padding: 16px 20px 16px 60px;
        font-size: 0.95rem;
    }

    .icon-wrapper {
        width: 48px;
        height: 54px;
    }

    .password-group .toggle-password {
        width: 36px;
        height: 36px;
        left: 12px;
    }

    .btn-register {
        padding: 16px;
        font-size: 1rem;
    }
}

/* الهاتف (أصغر من 768px) */
@media (max-width: 768px) {
    .register-container {
        width: 95%;
        padding: 30px 25px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .form-control {
        height: 50px;
        padding: 14px 15px 14px 55px;
        font-size: 0.9rem;
    }

    .icon-wrapper {
        width: 42px;
        height: 50px;
    }

    .password-group .toggle-password {
        width: 32px;
        height: 32px;
        left: 10px;
        font-size: 0.85rem;
    }

    .btn-register {
        padding: 14px;
        font-size: 0.95rem;
    }

    .header-image {
        width: 100%;
        max-width: 300px;
        height: 150px;
    }
}

/* الهاتف الصغير جداً (أصغر من 480px) */
@media (max-width: 480px) {
    .register-container {
        padding: 25px 20px;
    }

    h2 {
        font-size: 1.3rem;
    }

    .form-control {
        height: 48px;
        padding: 12px 12px 12px 50px;
        font-size: 0.85rem;
    }

    .icon-wrapper {
        width: 40px;
        height: 48px;
    }

    .password-group .toggle-password {
        width: 30px;
        height: 30px;
        left: 8px;
        font-size: 0.8rem;
    }

    .btn-register {
        padding: 12px;
        font-size: 0.9rem;
    }

    .header-image {
        width: 100%;
        max-width: 250px;
        height: 130px;
    }
}
