.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1.2fr 1fr;
}

/* .auth-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 26px;
    padding: 36px 42px 30px;
    background: linear-gradient(145deg, var(--green-900), var(--green-700));
    color: white;
    position: relative;
} */

/* .auth-side-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 220px;
} */

.auth-side .brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    width: fit-content;
    margin-inline-start: auto;
}

.auth-side .brand img {
    display: block;
    width: min(100%, 300px);
    max-width: 230px;
    height: auto;
    filter: none;
}

/* .auth-message {
    max-width: 700px;
    margin: 16px auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} */


.auth-side {
    display: flex;
    flex-direction: column;
    gap: 46px;
    padding: 36px 42px 30px;
    background: linear-gradient(145deg, var(--green-900), var(--green-700));
    color: white;
    position: relative;
}

.auth-side-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 220px;
}

.auth-message {
    max-width: 500px;
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.auth-message h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 3vw, 82px);
    font-weight: 500;
    line-height: 1.2;
    color: white;
    letter-spacing: -0.04em;
    text-align: center;
    direction: rtl;
}

.auth-message h1 span {
    display: block;
    font-size: clamp(42px, 2.8vw, 76px);
    font-weight: 500;
    margin-top: 6px;
}

.auth-message p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.8;
    text-align: center;
    max-width: 560px;
    direction: rtl;
}



.auth-main {
    display: grid;
    place-items: center;
    padding: 32px;
}

.auth-card {
    width: min(430px, 100%);
    padding: 34px;
}

.auth-card h2 {
    margin: 0;
    color: var(--green-900);
    font-size: 24px;
    font-weight: 500;
}

.auth-card>p {
    margin: 7px 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 6px;
    background: #edf4f2;
    border-radius: 12px;
}

.auth-tab {
    border: 0;
    background: transparent;
    color: var(--green-900);
    font-weight: 500;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--green-700);
    color: white;
    box-shadow: 0 6px 18px rgba(17, 110, 84, 0.18);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    width: 100%;
    padding-left: 14px;
    padding-right: 42px;
    text-align: right;
    direction: rtl;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--green-700);
    cursor: pointer;
    font-size: 18px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: var(--green-700);
}

.auth-form .btn {
    margin-top: 4px;
}

.back-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--green-700);
    font-size: 12px;
}

@media (max-width: 820px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-side {
        min-height: 300px;
        padding: 30px 24px;
    }

    .auth-main {
        padding: 24px 14px;
    }

    .auth-side {
        min-height: 190px;
        gap: 20px;
        padding: 20px 18px;
    }

    .auth-side-top {
        min-height: 0;
    }

    .auth-side .brand img {
        max-width: 150px;
    }

    .auth-message {
        position: static;
        width: 100%;
        max-width: none;
        transform: none;
    }

    .auth-message h1 {
        font-size: 28px;
    }

    .auth-message h1 span {
        font-size: 30px;
    }

    .auth-message p {
        display: none;
    }

    .auth-card {
        padding: 24px 18px;
    }
}