﻿/* ✅ الخط */
body {
    font-family: 'Cairo', sans-serif;
}

/* 🌄 خلفية الصفحة */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 60px 15px;
    background: linear-gradient(135deg, #009688, #07706D);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

    /* ✨ دوائر متحركة */
    main::before,
    main::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        animation: floatAnim 10s infinite ease-in-out alternate;
        z-index: 0;
    }

    main::before {
        width: 350px;
        height: 350px;
        top: -100px;
        right: -120px;
        background: rgba(0, 188, 212, 0.25);
    }

    main::after {
        width: 200px;
        height: 200px;
        bottom: -80px;
        left: -60px;
        background: rgba(33, 150, 243, 0.25);
        animation-duration: 12s;
    }

@keyframes floatAnim {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-30px) scale(1.1);
    }
}

/* 📦 صندوق التسجيل */
.register-card {
    width: 480px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    padding: 30px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease;
    text-align: right;
}

/* ✨ حركة دخول */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-header {
    text-align: center;
    margin-bottom: 20px;
}

    .register-header h3 {
        font-weight: bold;
        color: #07706D;
        font-size: 26px;
    }

/* 🌐 أزرار تسجيل عبر جوجل وفيسبوك */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 10px;
    transition: transform 0.2s ease;
}

    .social-btn:hover {
        transform: scale(1.03);
    }

.btn-google {
    background: #db4437;
    color: #fff;
}

.btn-facebook {
    background: #3b5998;
    color: #fff;
}

/* 📋 الحقول */
.form-control, .input-group-text, .country-code-select {
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
}

.phone-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: row-reverse;
}

.country-code-select {
    border: 1px solid #ced4da;
    padding: 6px 10px;
    background-color: white;
    min-width: 100px;
}

.phone-input {
    flex: 1;
}

/* 👁️ أيقونة إظهار كلمة المرور */
.input-group-text {
    cursor: pointer;
}

/* 🔒 شريط قوة كلمة المرور */
.password-strength {
    height: 6px;
    border-radius: 4px;
    margin-top: 6px;
    transition: all 0.3s ease;
}

/* زر التسجيل */
.btn-register {
    background-color: #07706D;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

    .btn-register:hover {
        background-color: #055c56;
    }

/* ⚡ اهتزاز عند الخطأ */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.5s;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.7);
}

/* 🌟 Pulse أخضر عند النجاح */
@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(40, 167, 69, 0.7);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 25px rgba(40, 167, 69, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(40, 167, 69, 0.7);
    }
}

.success {
    animation: successPulse 1s ease;
    border: 1px solid rgba(40, 167, 69, 0.7);
}

/* ✅ Toast إشعارات */
.toast-success, .toast-error {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 15px;
    font-weight: 600;
    display: none;
    z-index: 9999;
    animation: fadeSlide 0.6s ease;
}

.toast-success {
    background: #28a745;
    color: #fff;
}

.toast-error {
    background: #dc3545;
    color: #fff;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
