/* =====================================
   سیتکا — صفحه ورود (طراحی دوپنلی)
   پنل راست: معرفی امکانات
   پنل چپ : فرم ورود دومرحله‌ای
===================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {

    width: 100%;
    height: 100%;

    min-height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

}


body {

    font-family: "Vazirmatn", sans-serif;

    background: #f5f8fc;

    color: #172033;

    -webkit-font-smoothing: antialiased;

}


button,
input {

    font-family: inherit;

}


button {

    -webkit-tap-highlight-color: transparent;

}


/* =====================================================
   BACKGROUND
===================================================== */

.background {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;

}


.bg-circle {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

}


.bg-circle-1 {

    width: 500px;
    height: 500px;

    top: -300px;
    right: -180px;

    background: rgba(0, 108, 255, .055);

    animation: floating1 12s ease-in-out infinite;

}


.bg-circle-2 {

    width: 400px;
    height: 400px;

    bottom: -250px;
    left: -150px;

    background: rgba(0, 108, 255, .045);

    animation: floating2 14s ease-in-out infinite;

}


@keyframes floating1 {

    0%,
    100% {

        transform: translate3d(0, 0, 0);

    }

    50% {

        transform: translate3d(-30px, 30px, 0);

    }

}


@keyframes floating2 {

    0%,
    100% {

        transform: translate3d(0, 0, 0);

    }

    50% {

        transform: translate3d(30px, -25px, 0);

    }

}


/* =====================================================
   MAIN PAGE
===================================================== */

.page {

    position: fixed;

    inset: 0;

    width: 100vw;

    height: 100vh;

    height: 100dvh;

    overflow: hidden;

    z-index: 2;

}


/* =====================================================
   MAIN WRAPPER
===================================================== */

.login-wrapper {

    position: relative;

    width: 100%;
    height: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: #fff;

    overflow: hidden;

}


/* =====================================================
   FEATURE PANEL
===================================================== */

.features {

    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: clamp(40px, 7vw, 100px);

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #006CFF 0%,
            #005BE2 52%,
            #0049BC 100%
        );

}


/* decorative circles */

.features-circle {

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.12);

    pointer-events: none;

}


.features-circle-1 {

    width: 650px;
    height: 650px;

    top: -330px;
    left: -220px;

}


.features-circle-2 {

    width: 450px;
    height: 450px;

    bottom: -280px;
    right: -180px;

}


.features-circle-3 {

    width: 280px;
    height: 280px;

    bottom: 100px;
    left: 80px;

    border-color: rgba(255,255,255,.06);

}


.feature-content {

    position: relative;

    z-index: 5;

    width: 100%;

    max-width: 560px;

}


/* =====================================================
   BRAND
===================================================== */

.brand {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 55px;

    animation: fadeUp .7s ease both;

}


.brand-icon {

    width: 60px;
    height: 60px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255,255,255,.92);

    border: 1px solid rgba(255,255,255,.22);

    backdrop-filter: blur(12px);

    overflow: hidden;

    padding: 6px;

}


.brand-icon img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    user-select: none;

}


.brand-name {

    font-size: 29px;

    font-weight: 800;

    line-height: 1.2;

}


.brand-subtitle {

    margin-top: 4px;

    font-size: 11px;

    color: rgba(255,255,255,.65);

}


/* =====================================================
   FEATURE TITLE
===================================================== */

.features-title {

    font-size: clamp(32px, 4vw, 52px);

    line-height: 1.35;

    font-weight: 800;

    letter-spacing: -1px;

    margin-bottom: 20px;

    animation: fadeUp .7s .1s ease both;

}


.features-title span {

    color: #dbeaff;

}


.features-description {

    max-width: 500px;

    font-size: 14px;

    line-height: 2.1;

    color: rgba(255,255,255,.74);

    margin-bottom: 38px;

    animation: fadeUp .7s .2s ease both;

}


/* =====================================================
   FEATURES LIST
===================================================== */

.feature-list {

    display: grid;

    gap: 13px;

}


.feature-item {

    display: flex;

    align-items: center;

    gap: 13px;

    font-size: 13px;

    color: rgba(255,255,255,.91);

    animation: fadeRight .6s ease both;

}


.feature-item:nth-child(1) {

    animation-delay: .2s;

}


.feature-item:nth-child(2) {

    animation-delay: .3s;

}


.feature-item:nth-child(3) {

    animation-delay: .4s;

}


.feature-item:nth-child(4) {

    animation-delay: .5s;

}


.feature-item:nth-child(5) {

    animation-delay: .6s;

}


.feature-check {

    width: 30px;
    height: 30px;

    flex-shrink: 0;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255,255,255,.13);

    border: 1px solid rgba(255,255,255,.12);

    font-size: 13px;

}


.feature-footer {

    margin-top: 50px;

    font-size: 10px;

    color: rgba(255,255,255,.42);

    animation: fadeUp .8s .7s ease both;

}


/* =====================================================
   LOGIN PANEL
===================================================== */

.login-panel {

    width: 100%;
    height: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    background: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        clamp(30px, 6vw, 100px)
        clamp(30px, 8vw, 130px);

    overflow: hidden;

}


.login-content {

    width: 100%;

    max-width: 440px;

    margin: auto;

}


/* =====================================================
   MOBILE LOGO
===================================================== */

.mobile-logo {

    display: none;

    align-items: center;

    justify-content: center;

    gap: 10px;

}


.mobile-logo-icon {

    width: 46px;
    height: 46px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff;

    box-shadow: 0 10px 25px rgba(0,108,255,.2);

    overflow: hidden;

    padding: 4px;

}


.mobile-logo-icon img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    user-select: none;

}


.mobile-logo span {

    font-size: 24px;

    font-weight: 800;

    color: #172033;

}


/* =====================================================
   LOGIN HEADER
===================================================== */

.login-header {

    margin-bottom: 35px;

}


.login-header h2 {

    font-size: 30px;

    font-weight: 800;

    color: #172033;

    margin-bottom: 9px;

    letter-spacing: -.5px;

}


.login-header p {

    color: #8791a2;

    font-size: 12px;

    line-height: 2;

}


/* =====================================================
   STEPS
===================================================== */

.steps {

    display: flex;

    align-items: center;

    width: 100%;

    margin-bottom: 36px;

}


.step {

    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;

    color: #a6adba;

    font-size: 11px;

    transition: .3s ease;

}


.step-number {

    width: 32px;
    height: 32px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f0f3f7;

    color: #969fad;

    font-weight: 700;

    transition: .3s ease;

}


.step.active {

    color: #006CFF;

}


.step.active .step-number {

    color: #fff;

    background: #006CFF;

    box-shadow:
        0 8px 20px rgba(0,108,255,.22);

}


.step.completed {

    color: #17B26A;

}


.step.completed .step-number {

    color: #fff;

    background: #17B26A;

}


.step-line {

    flex: 1;

    height: 1px;

    background: #e9edf3;

    margin: 0 12px;

}


/* =====================================================
   FORM STAGES
===================================================== */

.form-stage {

    display: none;

    animation: stageIn .45s cubic-bezier(.2,.8,.2,1);

}


.form-stage.active {

    display: block;

}


@keyframes stageIn {

    from {

        opacity: 0;

        transform: translateX(-22px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}


/* =====================================================
   LABEL
===================================================== */

.field-label {

    display: block;

    margin-bottom: 10px;

    font-size: 12px;

    font-weight: 700;

    color: #313a4c;

}


/* =====================================================
   INPUT
===================================================== */

.input-wrapper {

    position: relative;

    width: 100%;

    margin-bottom: 8px;

}


.form-input {

    width: 100%;

    height: 58px;

    border: 1px solid #e4e8ef;

    border-radius: 15px;

    outline: none;

    background: #f9fafc;

    color: #172033;

    font-size: 13px;

    padding: 0 52px 0 18px;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;

}


.form-input:hover {

    border-color: #d7dde7;

}


.form-input:focus {

    background: #fff;

    border-color: #006CFF;

    box-shadow:
        0 0 0 4px rgba(0,108,255,.07);

}


.form-input::placeholder {

    color: #abb3c0;

}


.input-icon {

    position: absolute;

    right: 17px;

    top: 50%;

    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    color: #9ba5b4;

    pointer-events: none;

    z-index: 2;

}


.input-icon svg {

    width: 20px;
    height: 20px;

}


/* =====================================================
   PASSWORD
===================================================== */

.input-wrapper.password .form-input {

    padding-left: 55px;

}


.password-toggle {

    position: absolute;

    left: 11px;

    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: 0;

    background: transparent;

    color: #9ba5b4;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    transition: .2s ease;

}


.password-toggle:hover {

    color: #006CFF;

    background: #eef5ff;

}


.password-toggle svg {

    width: 19px;
    height: 19px;

}


/* =====================================================
   ERROR
===================================================== */

.error-message {

    min-height: 21px;

    color: #ef4444;

    font-size: 10px;

    opacity: 0;

    transform: translateY(-3px);

    transition: .2s ease;

}


.error-message.show {

    opacity: 1;

    transform: translateY(0);

}


/* =====================================================
   BUTTON
===================================================== */

.submit-button {

    position: relative;

    width: 100%;

    height: 58px;

    margin-top: 10px;

    border: 0;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #0875ff,
            #0059df
        );

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 12px 25px rgba(0,108,255,.20);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.submit-button::before {

    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 70%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.16),
            transparent
        );

    transform: skewX(-20deg);

    transition: .7s ease;

}


.submit-button:hover::before {

    left: 130%;

}


.submit-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 17px 32px rgba(0,108,255,.26);

}


.submit-button:active {

    transform: translateY(0);

}


/* =====================================================
   LOADING
===================================================== */

.submit-button.loading {

    pointer-events: none;

    color: transparent;

}


.submit-button.loading::after {

    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    border:
        2px solid rgba(255,255,255,.35);

    border-top-color: #fff;

    animation: spinner .7s linear infinite;

}


@keyframes spinner {

    to {

        transform:
            translate(-50%, -50%)
            rotate(360deg);

    }

}


/* =====================================================
   BACK BUTTON
===================================================== */

.back-button {

    width: 100%;

    margin-top: 18px;

    border: 0;

    background: transparent;

    color: #7d8797;

    font-size: 11px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    transition: .2s ease;

}


.back-button:hover {

    color: #006CFF;

}


/* =====================================================
   SECURITY
===================================================== */

.security-note {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 25px;

    padding: 13px 15px;

    border-radius: 13px;

    background: #f6f8fb;

    color: #808a9a;

    font-size: 9px;

    line-height: 1.9;

}


.security-icon {

    flex-shrink: 0;

    color: #17B26A;

    font-size: 13px;

}


/* =====================================================
   FOOTER
===================================================== */

.login-footer {

    text-align: center;

    margin-top: 27px;

    color: #b0b6c0;

    font-size: 9px;

}


/* =====================================================
   SUCCESS
===================================================== */

.success-screen {

    display: none;

    text-align: center;

    animation: successIn .55s ease;

}


.success-screen.active {

    display: block;

}


.success-icon {

    width: 78px;
    height: 78px;

    margin: 0 auto 22px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e9f9f1;

    color: #17B26A;

    font-size: 32px;

    font-weight: 700;

    animation: successPulse .7s ease;

}


.success-screen h3 {

    font-size: 22px;

    font-weight: 800;

    margin-bottom: 8px;

}


.success-screen p {

    color: #8791a2;

    font-size: 12px;

}


@keyframes successPulse {

    0% {

        transform: scale(.5);

        opacity: 0;

    }

    70% {

        transform: scale(1.08);

    }

    100% {

        transform: scale(1);

        opacity: 1;

    }

}


@keyframes successIn {

    from {

        opacity: 0;

        transform: translateY(15px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


@keyframes fadeRight {

    from {

        opacity: 0;

        transform: translateX(20px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}


/* =====================================================
   LARGE DESKTOP
===================================================== */

@media (min-width: 1500px) {

    .features {

        padding-left: 10vw;
        padding-right: 8vw;

    }


    .login-panel {

        padding-left: 10vw;
        padding-right: 10vw;

    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .login-wrapper {

        display: block;

    }


    .features {

        display: none;

    }


    .login-panel {

        width: 100%;
        height: 100%;

        min-height: 100vh;
        min-height: 100dvh;

        padding: 40px;

    }


    .login-content {

        max-width: 500px;

    }


    .mobile-logo {

        display: flex;

        margin-bottom: 45px;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    html,
    body {

        width: 100%;
        height: 100%;

        overflow: hidden;

    }


    .page {

        position: fixed;

        inset: 0;

        width: 100vw;

        height: 100vh;
        height: 100dvh;

        overflow: hidden;

    }


    .login-wrapper {

        position: fixed;

        inset: 0;

        width: 100vw;

        height: 100vh;
        height: 100dvh;

        min-height: 100vh;
        min-height: 100dvh;

        display: block;

        overflow: hidden;

    }


    .login-panel {

        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;

        min-height: 100vh;
        min-height: 100dvh;

        padding:
            25px
            22px;

        overflow: hidden;

        display: flex;

        align-items: center;

        justify-content: center;

    }


    .login-content {

        width: 100%;

        max-width: 440px;

    }


    .mobile-logo {

        margin-bottom: 48px;

    }


    .login-header {

        margin-bottom: 30px;

    }


    .login-header h2 {

        font-size: 25px;

    }


    .login-header p {

        font-size: 11px;

    }


    .steps {

        margin-bottom: 30px;

    }


    .step {

        font-size: 10px;

    }


    .step-line {

        margin: 0 8px;

    }


    .form-input,
    .submit-button {

        height: 56px;

    }


    .security-note {

        margin-top: 20px;

    }


    .login-footer {

        margin-top: 22px;

    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .login-panel {

        padding:
            20px
            18px;

    }


    .mobile-logo {

        margin-bottom: 30px;

    }


    .login-header h2 {

        font-size: 23px;

    }


    .login-header p {

        font-size: 10px;

    }


    .steps {

        margin-bottom: 24px;

    }


    .form-input,
    .submit-button {

        height: 53px;

    }


    .security-note {

        font-size: 8px;

    }

}


/* =====================================================
   DISABLE ANIMATIONS
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

    }

}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {

    width: 0;
    height: 0;

}


* {

    scrollbar-width: none;

}
