@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
html,
body {
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus,
*:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #f1f1f1;
    background-color: #1f2029;
    overflow: hidden;
    height: 100vh;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #12141d 100%);
}

#language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#language-switcher select {
    padding: 8px 12px;
    /* تعديل حجم الحواف في القائمة المنسدلة */
    font-size: 16px;
    /* تكبير حجم النص */
    border: 1px solid #03030350;
    background-color: #afafaf44;
    cursor: pointer;
    appearance: none;
    /* إخفاء السهم الافتراضي للقائمة المنسدلة */
    border-radius: 4px;
    /* تنعيم حواف القائمة المنسدلة */
}

#language-switcher select:hover {
    background-color: #c2bfbf;
}

#language-switcher select:focus {
    outline: none;
    /* إزالة تأثير التركيز */
    border-color: #4d90fe;
    /* تغيير لون الحدود عند التركيز */
}

form {
    height: 565px;
    width: 400px;
    background-color: rgba(255, 255, 255, 0.13);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(26, 15, 15, 0.603);
    transition: background-color 1s ease-out 100ms;
    padding: 50px 35px;
}

form * {
    letter-spacing: 0.4px;
    outline: none;
    border: none;
}

form h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
}

form:hover {
    background-color: #41414107;
}

.form-login.form-head h1 {
    font-size: calc(1.5rem + 0.5vw);
}

.form-login.form-head p {
    font-size: 0.9rem;
    line-height: 1rem;
}

.form-login .form-floating:focus-within {
    z-index: 5;
}

.form-login input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-login input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    background-color: transparent;
    color: #fff;
    border-bottom-left-radius: 0;
}

.form-login input[type="password"] {
    margin-bottom: 10px;
    background-color: transparent;
    color: #fff;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-login.form-head p[lang="ar"] {
    text-align: right;
}

.form-login input[type="text"],
.form-login input[type="password"] {
    display: block;
    margin: 20px auto;
    background-color: #3b4148;
    border: 0;
    border-radius: 5px;
    padding: 14px 10px;
    width: 320px;
    outline: 0;
    color: #a9a9a9;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

::-webkit-input-placeholder {
    color: #565f79;
}

.form-login input[type="text"]:focus,
.form-login input[type="password"]:focus {
    border: 1px solid #79a6fe;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #000303;
    font-size: 16px;
    text-decoration: none;
    overflow: hidden;
    transition: .5s;
    margin-top: 15px;
    letter-spacing: 2px
}

.btn:hover {
    background: #289bb8;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #289bb8, 0 0 25px #289bb8, 0 0 50px #000000, 0 0 100px #289bb8;
}

.btn span {
    position: absolute;
    display: block;
}

.btn span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #289bb8);
    animation: btn-anim1 1s linear infinite;
}

@keyframes btn-anim1 {
    0% {
        left: -100%;
    }
    50%,
    100% {
        left: 100%;
    }
}

.btn span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #289bb8);
    animation: btn-anim2 1s linear infinite;
    animation-delay: .50s
}

@keyframes btn-anim2 {
    0% {
        top: -100%;
    }
    50%,
    100% {
        top: 100%;
    }
}

.btn span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #289bb8);
    animation: btn-anim3 1s linear infinite;
    animation-delay: .50s
}

@keyframes btn-anim3 {
    0% {
        right: -100%;
    }
    50%,
    100% {
        right: 100%;
    }
}

.btn span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #289bb8);
    animation: btn-anim4 1s linear infinite;
    animation-delay: .100s;
}

@keyframes btn-anim4 {
    0% {
        bottom: -100%;
    }
    50%,
    100% {
        bottom: 100%;
    }
}

.wrapper {
    position: absolute;
    bottom: 20px;
    /* يمكنك ضبط الارتفاع حسب الحاجة */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.wrapper .icon {
    position: relative;
    background: #0e0a0a;
    border-radius: 15px;
    padding: 15px;
    margin: 15px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


.wrapper .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #ffffff;
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #ffffff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .facebook:hover,
.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip::before {
    background: #1877F2;
    color: #ffffff;
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
    background: #861602;
    color: #ffffff;
}

.submitbtn {
    background: #0D6EFD;
    border: 0;
    margin-top: 0.5rem;
    width: 100%;
    height: 45px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}