﻿.nda-auth-page {
        width: 100%;
        min-height: calc(100vh - 140px);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 56px 20px;
        background: transparent;
        box-sizing: border-box;
    }

    .nda-auth-page *,
    .nda-auth-page *::before,
    .nda-auth-page *::after {
        box-sizing: border-box;
    }

    .nda-auth-container {
        position: relative;
        width: 100%;
        max-width: 900px;
        height: 550px;
        background: #ffffff;
        border-radius: 24px;
        box-shadow: 0 25px 55px rgba(15, 23, 42, 0.18);
        overflow: hidden;
        isolation: isolate;

        /* خیلی مهم: layout کارت باید مثل نسخه اصلی LTR بماند */
        direction: ltr;
    }

    .nda-auth-container::before {
        content: "";
        position: absolute;
        height: 2000px;
        width: 2000px;
        top: -10%;
        right: 48%;
        transform: translateY(-50%);
        background: linear-gradient(-45deg, #667eea 0%, #764ba2 100%);
        transition: 1.8s ease-in-out;
        border-radius: 50%;
        z-index: 6;
        pointer-events: none;
    }

    .nda-forms-container {
        position: absolute;
        width: 100%;
        height: 100%;
        inset: 0;
    }

    .nda-signin-signup {
        position: absolute;
        top: 50%;
        left: 75%;
        transform: translate(-50%, -50%);
        width: 50%;
        transition: 1s 0.7s ease-in-out;
        display: grid;
        grid-template-columns: 1fr;
        z-index: 5;
    }

    .nda-auth-form {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0 4.5rem;
        transition: all 0.2s 0.7s;
        overflow: hidden;
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        width: 100%;

        /* متن‌های فرم فارسی باشد */
        direction: rtl;
    }

    .nda-sign-up-form {
        opacity: 0;
        z-index: 1;
    }

    .nda-sign-in-form {
        z-index: 2;
    }

    .nda-title {
        font-size: 2.15rem;
        color: #333;
        margin-bottom: 10px;
        font-weight: 800;
        line-height: 1.4;
        text-align: center;
    }

    .nda-auth-desc {
        color: #777;
        font-size: 0.92rem;
        line-height: 1.9;
        text-align: center;
        margin-bottom: 16px;
        max-width: 320px;
    }

    .nda-input-field {
        max-width: 380px;
        width: 100%;
        background-color: #f0f0f0;
        margin: 10px 0;
        height: 55px;
        border-radius: 55px;
        display: grid;
        grid-template-columns: 15% 85%;
        padding: 0 0.4rem;
        position: relative;
        transition: 0.3s;
    }

    .nda-input-field:focus-within {
        background-color: #e8e8e8;
        box-shadow: 0 0 0 2px #667eea;
    }

    .nda-input-field i {
        text-align: center;
        line-height: 55px;
        color: #666;
        transition: 0.5s;
        font-size: 1.1rem;
        font-style: normal;
    }

    .nda-input-field input {
        background: none;
        outline: none;
        border: none;
        line-height: 1;
        font-weight: 600;
        font-size: 1rem;
        color: #333;
        width: 100%;
        direction: ltr;
        text-align: left;
    }

    .nda-input-field input::placeholder {
        color: #aaa;
        font-weight: 400;
    }

    .nda-btn {
        min-width: 165px;
        background-color: #667eea;
        border: none;
        outline: none;
        height: 49px;
        border-radius: 49px;
        color: #fff;
        font-weight: 700;
        margin: 14px 0 8px;
        cursor: pointer;
        transition: 0.45s;
        font-size: 0.95rem;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .nda-btn:hover {
        background-color: #5568d3;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .nda-btn.transparent {
        margin: 0;
        background: transparent;
        border: 2px solid #fff;
        width: 130px;
        min-width: 130px;
        height: 41px;
        font-weight: 700;
        font-size: 0.85rem;
        box-shadow: none;
    }

    .nda-btn.transparent:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-2px);
        box-shadow: none;
    }

    .nda-panels-container {
        position: absolute;
        height: 100%;
        width: 100%;
        inset: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        /* خیلی مهم: ستون‌های پنل مثل نسخه اصلی بمانند */
        direction: ltr;
    }

    .nda-panel {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        text-align: center;
        z-index: 7;
    }

    .nda-left-panel {
        pointer-events: all;
        align-items: flex-start;
        padding: 3rem 17% 2rem 12%;
        grid-column: 1 / 2;
    }

    .nda-right-panel {
        pointer-events: none;
        align-items: flex-end;
        padding: 3rem 12% 2rem 17%;
        grid-column: 2 / 3;
    }

    .nda-panel .nda-content {
        color: #fff;
        transition: transform 0.9s ease-in-out;
        transition-delay: 0.6s;
        max-width: 300px;

        /* متن‌های پنل فارسی باشد */
        direction: rtl;
        text-align: center;
    }

    .nda-panel h3 {
        font-weight: 800;
        line-height: 1.4;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .nda-panel p {
        font-size: 0.95rem;
        line-height: 1.9;
        padding: 0.7rem 0 1rem;
        margin: 0;
    }

    .nda-right-panel .nda-content {
        transform: translateX(800px);
    }

    .nda-auth-container.sign-up-mode::before {
        transform: translate(100%, -50%);
        right: 52%;
    }

    .nda-auth-container.sign-up-mode .nda-left-panel .nda-content {
        transform: translateX(-800px);
    }

    .nda-auth-container.sign-up-mode .nda-signin-signup {
        left: 25%;
    }

    .nda-auth-container.sign-up-mode .nda-sign-up-form {
        opacity: 1;
        z-index: 2;
    }

    .nda-auth-container.sign-up-mode .nda-sign-in-form {
        opacity: 0;
        z-index: 1;
    }

    .nda-auth-container.sign-up-mode .nda-right-panel .nda-content {
        transform: translateX(0%);
    }

    .nda-auth-container.sign-up-mode .nda-left-panel {
        pointer-events: none;
    }

    .nda-auth-container.sign-up-mode .nda-right-panel {
        pointer-events: all;
    }

    .nda-message-box {
        width: 100%;
        max-width: 380px;
        margin-bottom: 6px;
    }

    .nda-message {
        background: #eef2ff;
        color: #4338ca;
        border-radius: 14px;
        padding: 10px 14px;
        font-size: 0.88rem;
        line-height: 1.8;
        margin-bottom: 8px;
        text-align: center;
    }

    .nda-error {
        width: 100%;
        max-width: 380px;
        background: #fff1f2;
        color: #be123c;
        border-radius: 14px;
        padding: 10px 14px;
        font-size: 0.88rem;
        line-height: 1.8;
        margin-top: 6px;
        text-align: center;
    }

    .nda-small-text {
        max-width: 350px;
        color: #777;
        font-size: 0.84rem;
        line-height: 1.9;
        text-align: center;
        margin-top: 8px;
    }

    @media (max-width: 870px) {
        .nda-auth-page {
            padding: 30px 14px;
            align-items: flex-start;
        }

        .nda-auth-container {
            min-height: 780px;
            height: 780px;
        }

        .nda-signin-signup {
            width: 100%;
            top: 94%;
            transform: translate(-50%, -100%);
            transition: 1s 0.8s ease-in-out;
        }

        .nda-signin-signup,
        .nda-auth-container.sign-up-mode .nda-signin-signup {
            left: 50%;
        }

        .nda-panels-container {
            grid-template-columns: 1fr;
            grid-template-rows: 1fr 2fr 1fr;
        }

        .nda-panel {
            flex-direction: row;
            justify-content: space-around;
            align-items: center;
            padding: 2.5rem 8%;
            grid-column: 1 / 2;
        }

        .nda-right-panel {
            grid-row: 3 / 4;
        }

        .nda-left-panel {
            grid-row: 1 / 2;
        }

        .nda-panel .nda-content {
            padding-right: 15%;
            transition: transform 0.9s ease-in-out;
            transition-delay: 0.8s;
        }

        .nda-panel h3 {
            font-size: 1.2rem;
        }

        .nda-panel p {
            font-size: 0.75rem;
            padding: 0.5rem 0;
        }

        .nda-btn.transparent {
            width: 112px;
            min-width: 112px;
            height: 36px;
            font-size: 0.75rem;
        }

        .nda-auth-container::before {
            width: 1500px;
            height: 1500px;
            transform: translateX(-50%);
            left: 30%;
            bottom: 68%;
            right: initial;
            top: initial;
            transition: 2s ease-in-out;
        }

        .nda-auth-container.sign-up-mode::before {
            transform: translate(-50%, 100%);
            bottom: 32%;
            right: initial;
        }

        .nda-auth-container.sign-up-mode .nda-left-panel .nda-content {
            transform: translateY(-300px);
        }

        .nda-auth-container.sign-up-mode .nda-right-panel .nda-content {
            transform: translateY(0px);
        }

        .nda-right-panel .nda-content {
            transform: translateY(300px);
        }

        .nda-auth-container.sign-up-mode .nda-signin-signup {
            top: 5%;
            transform: translate(-50%, 0);
        }
    }

    @media (max-width: 570px) {
        .nda-auth-form {
            padding: 0 1.5rem;
        }

        .nda-panel .nda-content {
            padding: 0.5rem 1rem;
        }

        .nda-title {
            font-size: 1.65rem;
        }

        .nda-auth-desc {
            font-size: 0.86rem;
        }

        .nda-input-field {
            height: 52px;
            border-radius: 52px;
        }

        .nda-input-field i {
            line-height: 52px;
        }
    }

