﻿
@charset "UTF-8";
/* =========================
   فونت اصلی - YekanBakh
========================= */

* {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* =========================
   Body
========================= */

body {
    direction: rtl;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    background: radial-gradient( circle at 15% 20%, rgba(66, 165, 245, .18), transparent 35% ), radial-gradient( circle at 85% 80%, rgba(25, 118, 210, .16), transparent 35% ), linear-gradient( 135deg, #eef6ff 0%, #dbeafe 50%, #eff6ff 100% );
    min-height: 100vh;
    color: #263238;
    overflow: hidden;
}

/* =========================
   صفحه اصلی
========================= */

.login-page {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
}

/* =========================
   کارت
========================= */

.login-card {
    width: 455px;
    max-width: 100%;
    background: rgba(255, 255, 255, .97);
    border-radius: 27px;
    padding: 30px 34px 18px;
    box-shadow: 0 25px 65px rgba(25, 70, 120, .18), 0 5px 20px rgba(0, 0, 0, .05);
    border: 1px solid rgba(255, 255, 255, .8);
    animation: cardShow .6s ease;
    position: relative;
    overflow: hidden;
}

@keyframes cardShow {

    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* نوار بالای کارت */

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient( 90deg, #1565c0, #42a5f5, #64b5f6 );
}

/* =========================
   Header
========================= */

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 9px;
    border-radius: 21px;
    background: linear-gradient( 135deg, #1565c0, #42a5f5 );
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 31px;
    box-shadow: 0 11px 25px rgba(21, 101, 192, .28);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.brand-small {
    color: #1976d2;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 3px;
}

.login-header h1 {
    margin: 6px 0 3px;
    font-size: 21px;
    color: #163a5c;
    font-weight: bold;
}

.login-header p {
    margin: 0;
    color: #78909c;
    font-size: 14px;
}

/* =========================
   مراحل
========================= */

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0 22px;
}

.step {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a0aab5;
    font-size: 12px;
    white-space: nowrap;
}

    .step span {
        width: 29px;
        height: 29px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #edf1f5;
        color: #8a969f;
        font-weight: bold;
        transition: .3s;
    }

    .step.active {
        color: #1976d2;
        font-weight: bold;
    }

        .step.active span {
            background: #1976d2;
            color: white;
            box-shadow: 0 5px 12px rgba(25, 118, 210, .25);
        }

    .step.completed {
        color: #2e7d32;
        font-weight: bold;
    }

        .step.completed span {
            background: #43a047;
            color: white;
        }

.step-line {
    width: 48px;
    height: 2px;
    background: #e2e7ec;
    margin: 0 9px;
}

/* =========================
   Message
========================= */

.message-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 12px;
    animation: messageShow .35s ease;
}

@keyframes messageShow {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-box.success {
    background: #edf8f0;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.message-box.error {
    background: #fff1f1;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.message-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    background: rgba(255, 255, 255, .8);
}

/* =========================
   عنوان بخش
========================= */

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: bold;
    color: #263f58;
    margin-bottom: 17px;
}

/* =========================
   Input
========================= */

.input-group {
    margin-bottom: 15px;
}

.lblstyle {
    display: block;
    text-align: right;
    margin-bottom: 6px;
    color: #37474f;
    font-size: 13px;
    font-weight: bold;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    z-index: 2;
    opacity: .75;
}

.txtstyle {
    width: 100%;
    height: 47px;
    border-radius: 12px;
    border: 1px solid #d6dee7;
    background: #fbfdff;
    padding: 0 43px 0 14px;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-size: 14px;
    color: #263238;
    outline: none;
    transition: all .25s ease;
}

    .txtstyle:hover {
        border-color: #b7c7d8;
    }

    .txtstyle:focus {
        border-color: #1976d2;
        background: white;
        box-shadow: 0 0 0 4px rgba(25, 118, 210, .10);
    }

.phone-input {
    direction: ltr;
    text-align: right;
}

.field-hint {
    font-size: 11px;
    color: #90a4ae;
    margin-top: 5px;
}

/* =========================
   دکمه اصلی
========================= */

.btn-login {
    width: 100%;
    height: 47px;
    margin-top: 4px;
    margin-bottom: 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient( 135deg, #1565c0, #42a5f5 );
    color: white;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(25, 118, 210, .20);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(25, 118, 210, .28);
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* =========================
   مرحله تایید
========================= */

.verify-body {
    text-align: center;
    animation: verifyShow .4s ease;
}

@keyframes verifyShow {

    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.verify-icon {
    width: 63px;
    height: 63px;
    border-radius: 50%;
    background: #e3f2fd;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.verify-title {
    font-size: 18px;
    font-weight: bold;
    color: #263f58;
    margin-bottom: 6px;
}

.verify-description {
    color: #78909c;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 17px;
}

    .verify-description strong {
        color: #1976d2;
        direction: ltr;
        display: inline-block;
    }

.sms-code {
    direction: ltr;
    text-align: center;
    letter-spacing: 7px;
    font-size: 20px;
    font-weight: bold;
    padding-right: 43px;
}

/* =========================
   دکمه دوم
========================= */

.btn-secondary {
    width: 100%;
    height: 42px;
    margin-top: 9px;
    border: 1px solid #d6dee7;
    border-radius: 11px;
    background: #f8fafc;
    color: #546e7a;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-size: 13px;
    cursor: pointer;
    transition: .25s;
}

    .btn-secondary:hover {
        background: #eef4f9;
        border-color: #b8c7d4;
        color: #1976d2;
    }

/* =========================
   Footer
========================= */

.login-footer {
    text-align: center;
    margin-top: 21px;
    color: #90a4ae;
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
    font-size: 11px;
    line-height: 1.8;
    white-space: nowrap;
}

.footer-line {
    width: 65px;
    height: 1px;
    background: #e1e7ec;
    margin: 0 auto 9px;
}

.login-footer span {
    display: block;
    color: #607d8b;
    font-weight: bold;
    margin-top: 3px;
}

.login-footer small {
    color: #a0adb5;
    font-size: 10px;
}

/* =========================
   ارتفاع کم صفحه
========================= */

@media (max-height: 720px) {

    .login-page {
        padding: 5px 15px;
    }

    .login-card {
        padding-top: 22px;
        padding-bottom: 12px;
    }

    .login-header {
        margin-bottom: 14px;
    }

    .login-icon {
        width: 58px;
        height: 58px;
        font-size: 27px;
        margin-bottom: 6px;
    }

    .login-header h1 {
        font-size: 19px;
    }

    .login-header p {
        font-size: 12px;
    }

    .steps {
        margin-bottom: 16px;
    }

    .input-group {
        margin-bottom: 11px;
    }

    .txtstyle {
        height: 44px;
    }

    .btn-login {
        height: 44px;
    }

    .login-footer {
        margin-top: 14px;
    }
}

/* =========================
   ارتفاع خیلی کم
========================= */

@media (max-height: 620px) {

    .login-card {
        padding-top: 15px;
        padding-bottom: 8px;
    }

    .login-header {
        margin-bottom: 10px;
    }

    .login-icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .brand-small {
        font-size: 11px;
    }

    .login-header h1 {
        font-size: 17px;
    }

    .login-header p {
        font-size: 11px;
    }

    .steps {
        margin-bottom: 11px;
    }

    .step span {
        width: 25px;
        height: 25px;
    }

    .input-group {
        margin-bottom: 8px;
    }

    .lblstyle {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .txtstyle {
        height: 40px;
    }

    .btn-login {
        height: 41px;
    }

    .login-footer {
        margin-top: 9px;
        font-size: 9px;
    }
}

/* =========================
   موبایل
========================= */

@media (max-width: 480px) {

    .login-page {
        padding: 7px;
    }

    .login-card {
        width: 100%;
        padding: 24px 19px 14px;
        border-radius: 23px;
    }

    .login-header h1 {
        font-size: 19px;
    }

    .login-header p {
        font-size: 13px;
    }

    .step {
        font-size: 10px;
    }

    .step-line {
        width: 26px;
        margin: 0 6px;
    }

    .login-footer {
        font-size: 9px;
        white-space: normal;
    }
}

/* =========================================
   اعمال اجباری فونت YekanBakh روی کل فرم
   ========================================= */

html,
body,
.login-page,
.login-card,
.login-card *,
input,
button,
textarea,
select,
label,
span,
div,
h1,
h2,
h3,
p {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}


    /* کنترل‌های ASP.NET */
    input[type="text"],
    input[type="password"],
    input[type="tel"],
    input[type="submit"],
    button {
        font-family: 'YekanBakh', Tahoma, sans-serif !important;
    }


/* دکمه‌های ASP.NET */
.btn-login,
.btn-secondary {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}


/* متن فیلدها */
.txtstyle {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}


/* عنوان‌ها */
.login-header h1,
.login-header p,
.brand-small,
.section-title,
.verify-title,
.verify-description,
.lblstyle,
.field-hint,
.login-footer,
.step,
.message-box {
    font-family: 'YekanBakh', Tahoma, sans-serif !important;
}

/* =====================================
   Naho Footer
===================================== */

.naho-footer {
    width: 100%;
    margin-top: 22px;
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e4e9ef;
    color: #7b8794;
    line-height: 1.8;
}

.naho-title {
    font-size: 13px;
    font-weight: 700;
    color: #1976d2;
}

.naho-company {
    font-size: 11px;
    color: #8a95a3;
    margin-top: 1px;
}

.naho-phone {
    direction: ltr;
    display: inline-block;
    color: #159957;
    font-weight: 600;
}

.naho-separator {
    margin: 0 6px;
    color: #c5ccd5;
}


/* موبایل Footer */

@media (max-width: 768px) {

    .naho-footer {
        margin-top: 15px;
        padding: 10px 8px;
        line-height: 1.7;
    }

    .naho-title {
        font-size: 11px;
    }

    .naho-company {
        font-size: 9px;
    }

    .naho-phone {
        font-size: 10px;
    }

    .naho-separator {
        margin: 0 4px;
    }
}
