﻿@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    direction: rtl;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    background: radial-gradient(ellipse at 15% 20%, rgba(0, 153, 255, .20), transparent 35%), radial-gradient(ellipse at 85% 80%, rgba(0, 220, 200, .13), transparent 35%), #071426;
    color: #fff;
}

input, button {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
    overflow: hidden;
}

    .login-page::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(0, 125, 255, .12);
        filter: blur(90px);
        top: -170px;
        right: -120px;
    }

    .login-page::after {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: rgba(0, 220, 190, .10);
        filter: blur(90px);
        bottom: -150px;
        left: -100px;
    }

.login-card {
    width: 100%;
    max-width: 445px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 0;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.075);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
    animation: glassEnter .8s ease;
}

    .login-card::before {
        content: "";
        display: block;
        height: 4px;
        background: linear-gradient(90deg, #00d4c0, #168cff, #6b7cff);
    }

.login-header {
    text-align: center;
    padding: 38px 35px 25px;
}

.login-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 32px;
    background: linear-gradient(145deg, #168cff, #0752b9);
    box-shadow: 0 0 35px rgba(22,140,255,.35);
    border: 1px solid rgba(255,255,255,.2);
}

.login-brand {
    color: #45c8ff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.login-header h1 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
}

.login-header p {
    color: #a6b9d3;
    font-size: 14px;
    margin-top: 9px;
}

.login-body {
    padding: 10px 38px 30px;
}

    .login-body label {
        display: block;
        color: #dce9fa;
        font-size: 14px;
        margin-bottom: 9px;
        font-weight: 700;
    }

.txtstyle {
    width: 100%;
    height: 54px;
    padding: 0 17px;
    margin-bottom: 21px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(5,19,38,.65);
    color: #fff;
    outline: none;
    font-size: 14px;
    transition: all .25s ease;
}

    .txtstyle::placeholder {
        color: #8194ad;
    }

    .txtstyle:focus {
        border-color: #21a7ff;
        background: rgba(8,32,59,.9);
        box-shadow: 0 0 0 3px rgba(33,167,255,.13), 0 0 22px rgba(33,167,255,.12);
    }

.btn-login {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(100deg, #0878e8, #16b9d1);
    box-shadow: 0 10px 30px rgba(0,140,255,.25);
    transition: all .25s ease;
}

    .btn-login:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0,160,255,.4);
        filter: brightness(1.12);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.guest-link {
    display: block;
    width: fit-content;
    margin: 22px auto 0;
    color: #53caff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}

    .guest-link:hover {
        color: #fff;
        text-shadow: 0 0 12px #21a7ff;
    }

.login-footer {
    padding: 18px 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.09);
    background: rgba(0,0,0,.12);
}

.naho-footer {
    color: #a9bbd1;
    font-size: 12px;
    line-height: 2;
}

    .naho-footer strong {
        display: block;
        color: #dceaff;
        font-size: 13px;
    }

    .naho-footer span {
        color: #8198b5;
    }

@keyframes glassEnter {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media(max-width: 520px) {
    .login-page {
        padding: 20px 14px;
    }

    .login-card {
        border-radius: 23px;
    }

    .login-header {
        padding: 30px 20px 20px;
    }

        .login-header h1 {
            font-size: 20px;
        }

    .login-body {
        padding: 10px 24px 26px;
    }
}

@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
