@font-face {
    font-family: "Vazir";
    src: url('../font/Vazirmatn-Bold.woff2');
}

* {
    text-decoration: none;
    font-family: "Vazir", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(145deg, #0a1420 0%, #142235 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.login-box {
    width: 420px;
    padding: 40px 35px;
    background: rgba(20, 35, 55, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(62, 138, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 10, 30, 0.6), 0 0 0 1px rgba(62, 138, 255, 0.1) inset;
    border-radius: 24px;
    transition: box-shadow 0.3s;
}

.login-box:hover {
    box-shadow: 0 25px 45px rgba(0, 20, 50, 0.7), 0 0 0 1px rgba(62, 138, 255, 0.3) inset;
}

.login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #d6e4ff;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.login-box .user-box {
    position: relative;
    margin-bottom: 10px;
}

.login-box .user-box input {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #e0edff;
    margin-bottom: 35px;
    border: none;
    border-bottom: 2px solid rgba(160, 196, 255, 0.4);
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.login-box .user-box input:focus {
    border-bottom-color: #3e8aff;
}

.login-box .user-box label {
    position: absolute;
    top: 12px;
    right: 0;
    padding: 0;
    font-size: 16px;
    color: #b0c8f0;
    pointer-events: none;
    transition: 0.25s ease;
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label {
    top: -18px;
    right: 0;
    color: #5b9aff;
    font-size: 13px;
    font-weight: 600;
}

.login-box .user-box textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: #e0edff;
    margin-bottom: 35px;
    border: none;
    border-bottom: 2px solid rgba(160, 196, 255, 0.4);
    outline: none;
    background: transparent;
    transition: border-color 0.3s;
}

.login-box .user-box textarea:focus {
    border-bottom-color: #3e8aff;
}

.login-box .user-box label {
    position: absolute;
    top: 12px;
    right: 0;
    padding: 0;
    font-size: 16px;
    color: #b0c8f0;
    pointer-events: none;
    transition: 0.25s ease;
}

.login-box .user-box textarea:focus ~ label,
.login-box .user-box textarea:valid ~ label {
    top: -18px;
    right: 0;
    color: #5b9aff;
    font-size: 13px;
    font-weight: 600;
}

.login-box .error-box {
    border-radius: 40px;
    padding: 10px 18px;
    color: #ffb0b0;
    background: rgba(200, 40, 40, 0.15);
    backdrop-filter: blur(4px);
    font-size: 14px;
    border: 1px solid rgba(255, 80, 80, 0.4);
    box-shadow: 0 0 12px rgba(255, 50, 50, 0.2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-box .error-box svg {
    width: 22px;
    height: 22px;
    fill: #ff7b7b;
    flex-shrink: 0;
}

.login-box .succ-box {
    border-radius: 40px;
    padding: 10px 18px;
    color: #ffb0b0;
    background: rgba(85, 200, 40, 0.15);
    backdrop-filter: blur(4px);
    font-size: 14px;
    border: 1px solid rgba(95, 255, 80, 0.4);
    box-shadow: 0 0 12px rgba(67, 255, 50, 0.2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-box .succ-box svg {
    width: 22px;
    height: 22px;
    fill: #7bff7b;
    flex-shrink: 0;
}

.btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.btn a,
.btn button {
    flex: 1;
    margin: 0;
    padding: 12px 16px;
    color: #a0c4ff;
    background: transparent;
    border: 1.5px solid #3e8aff;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    line-height: 1.2;
    display: inline-block;
    white-space: nowrap;
}

.btn a:hover,
.btn button:hover {
    background: #3e8aff;
    color: #ffffff;
    border-color: #3e8aff;
    box-shadow: 0 0 15px #3e8aff88, 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn button {
    font-family: "Vazir", sans-serif;
}

@media (max-width: 480px) {
    .login-box {
        width: 90%;
        padding: 30px 20px;
    }

    .btn a,
    .btn button {
        font-size: 13px;
        padding: 10px 8px;
        letter-spacing: 1px;
        white-space: nowrap;
    }
}