﻿@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: 35px 35px 20px;
}

.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;
}

/* نوار مراحل */

.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 35px 24px;
    direction: rtl;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8194ad;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .25s ease;
}

.step-number {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(5,19,38,.65);
    color: #a6b9d3;
    font-size: 12px;
}

.step.active {
    color: #53caff;
}

    .step.active .step-number {
        color: #fff;
        border-color: #168cff;
        background: linear-gradient(145deg, #168cff, #0752b9);
        box-shadow: 0 0 18px rgba(22,140,255,.3);
    }

.step.completed {
    color: #00d4c0;
}

    .step.completed .step-number {
        color: #071426;
        background: #00d4c0;
        border-color: #00d4c0;
    }

.step-line {
    width: 65px;
    height: 2px;
    margin: 0 12px;
    background: rgba(255,255,255,.16);
}

/* بدنه فرم */

.login-body {
    padding: 10px 38px 30px;
}

    .login-body label {
        display: block;
        color: #dce9fa;
        font-size: 14px;
        margin-bottom: 9px;
        font-weight: 700;
    }

.form-intro {
    text-align: center;
    margin-bottom: 25px;
}

    .form-intro h2 {
        color: #fff;
        font-size: 19px;
        font-weight: 800;
        margin: 0 0 9px;
    }

    .form-intro p {
        color: #a6b9d3;
        font-size: 13px;
        line-height: 2;
        margin: 0;
    }

.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);
    }

.otp-input {
    text-align: center;
    direction: ltr;
    letter-spacing: 9px;
    font-size: 21px;
    font-weight: 800;
}

.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);
    }

/* نمایش شماره همراه */

.phone-info {
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: 13px;
    border: 1px solid rgba(0,212,192,.2);
    background: rgba(0,212,192,.07);
    text-align: center;
}

.phone-caption {
    display: block;
    color: #a6b9d3;
    font-size: 12px;
    margin-bottom: 6px;
}

.phone-number {
    display: block;
    color: #53d8d0;
    font-size: 17px;
    font-weight: 800;
    direction: ltr;
    letter-spacing: 1px;
}

/* لینک‌ها */

.guest-link {
    display: block;
    width: fit-content;
    margin: 22px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #53caff;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    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;
    }

/* پیام‌های SweetAlert */

.lims-alert {
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 20px !important;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}

.swal2-title,
.swal2-html-container,
.swal2-confirm {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}

/* انیمیشن */

@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;
        }

    .progress-container {
        padding: 8px 20px 22px;
    }

    .step {
        gap: 6px;
        font-size: 11px;
    }

    .step-line {
        width: 40px;
        margin: 0 8px;
    }

    .login-body {
        padding: 10px 24px 26px;
    }
}

@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
