@font-face {
    font-family: "shabnam";
    src: url('../font/shabnam/Shabnam.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

a {
    text-decoration: none;
}

body {
    font-family: "shabnam", sans-serif;
    background-image: url('../img/login2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    direction: rtl;
    padding: 20px;
}

.transparent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.box {
    background-color: rgba(81, 103, 101, 0.45);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.name-input,
.email-input,
.pass-input,
.pass2-input {
    background-color: rgba(140, 155, 165, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
}

.name-input:focus,
.email-input:focus,
.pass-input:focus,
.pass2-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 92, 100, 0.45);
    background-color: rgba(140, 155, 165, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    color: #fff;
}

.submit-btn {
    background-color: rgba(12, 106, 168, 0.3);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: rgba(0, 153, 255, 0.09);
}

.is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


.pass-input {
    position: relative;
}

#togglePassword {
    position: absolute;
    left: 0;
    top: 77%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

#togglePassword:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .box {
        padding: 20px;
    }

    body {
        padding: 15px;
    }
}