/* =========================================================
   C2ONLINE - ADMIN LOGIN
   FINAL + VAZIRMATN
   ========================================================= */

/* ---------- Persian Font ---------- */

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}


/* ---------- Variables ---------- */

:root {
    --green: #087347;
    --green-dark: #07583a;
    --green-deep: #064a32;

    --orange: #ff7a00;
    --orange-light: #ffb347;

    --text: #16362c;
    --muted: #71847a;

    --bg: #f4f8f5;
    --white: #ffffff;
    --border: #dce8e1;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    direction: rtl;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    background: var(--bg);
    color: var(--text);

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.login-shell {
    width: 100%;
    min-height: 100vh;

    display: grid;

    grid-template-columns: 31% 69%;

    background: var(--bg);
}


/* =========================================================
   GREEN INTRO PANEL
   ========================================================= */

.intro {
    position: relative;

    min-width: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 52px 42px 44px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #08613f 0%,
            #07583a 55%,
            #064a32 100%
        );
}


/* ---------- Decorative circles ---------- */

.intro::before {
    content: "";

    position: absolute;

    width: 470px;
    height: 470px;

    left: -185px;
    top: 50%;

    transform: translateY(-50%);

    border: 62px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;

    pointer-events: none;
}

.intro::after {
    content: "";

    position: absolute;

    width: 315px;
    height: 315px;

    left: -105px;
    top: 50%;

    transform: translateY(-50%);

    border: 44px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 13px;

    width: fit-content;
    max-width: 100%;
}


/* =========================================================
   C2 LOGO
   ========================================================= */

.brand-icon {
    width: 64px;
    height: 64px;

    min-width: 64px;
    min-height: 64px;

    flex: 0 0 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    background: #ffffff;

    border-radius: 17px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.13);

    direction: ltr;
}


/*
   خود لوگوی C2 عمداً Vazirmatn نیست.
   برای حفظ ظاهر فعلی لوگو Arial استفاده می‌شود.
*/

.c2-logo-text {
    display: inline-block;

    margin: 0;
    padding: 0;

    color: var(--green-dark);

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 30px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: -2px;

    direction: ltr;
    white-space: nowrap;
}

.c2-logo-text > span {
    display: inline;

    margin: 0;
    padding: 0;

    color: var(--orange);

    font: inherit;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.brand-text {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    min-width: 0;

    direction: rtl;
}

.brand-text strong {
    display: block;

    margin: 0;

    color: #ffffff;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.6;

    white-space: nowrap;
}

.brand-title-c {
    color: #ffffff;
}

.brand-title-two {
    color: var(--orange);
}

.brand-text small {
    display: block;

    margin-top: 0;

    color: #ffc05b;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 2px;

    direction: ltr;
    text-align: left;
}


/* =========================================================
   INTRO COPY
   ========================================================= */

.intro-copy {
    position: relative;
    z-index: 4;

    width: 100%;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--orange-light);

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.9;
}


/* =========================================================
   MAIN TITLE
   مدیریت آسان، برای تو
   ========================================================= */

.intro h1 {
    margin: 0;

    color: #ffffff;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;

    font-size: clamp(34px, 2.8vw, 46px);

    font-weight: 700;

    line-height: 1.75;

    letter-spacing: -0.4px;
}


/* خط دوم */

.intro h1 br {
    display: block;
}


/* برای تو */

.intro h1 em {
    display: inline-block;

    color: #ffad38;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;

    font-style: normal;

    font-weight: 700;

    letter-spacing: -0.4px;

    white-space: nowrap;
}


/* ---------- Intro Description ---------- */

.intro p {
    max-width: 390px;

    margin: 16px 0 0;

    color: #e1f0e8;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    font-size: 14px;
    font-weight: 400;

    line-height: 2.15;
}


/* ---------- Intro Footer ---------- */

.intro-footer {
    position: relative;
    z-index: 4;

    color: #e2f0e9;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    font-size: 13px;
    font-weight: 400;
}


/* =========================================================
   FORM SIDE
   ========================================================= */

.form-side {
    min-width: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 28px 22px;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(8, 115, 71, 0.045),
            transparent 28%
        ),
        var(--bg);
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    width: min(100%, 430px);

    padding: 38px 42px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 23px;

    box-shadow:
        0 18px 55px rgba(7, 72, 45, 0.07);
}


/* =========================================================
   FORM TITLE
   ========================================================= */

.form-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #61786e;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.9;
}

.login-card h2 {
    margin: 0 0 9px;

    color: #153b2e;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    font-size: 27px;
    font-weight: 700;

    line-height: 1.7;

    letter-spacing: -0.3px;
}

.subheading {
    margin: 0 0 24px;

    color: var(--muted);

    font-size: 13px;
    font-weight: 400;

    line-height: 2;
}


/* =========================================================
   LABELS
   ========================================================= */

.login-card label {
    display: block;

    margin: 17px 0 7px;

    color: #23483b;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.9;
}


/* =========================================================
   INPUTS
   ========================================================= */

.login-card input:not([type="hidden"]) {
    display: block;

    width: 100%;
    height: 52px;

    margin: 0;

    padding: 0 15px;

    border: 1px solid #ceddd5;
    border-radius: 12px;

    outline: none;

    background: #f7faf8;

    color: #17392e;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    font-size: 14px;
    font-weight: 400;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.login-card input:not([type="hidden"]):hover {
    border-color: #aec8ba;
}

.login-card input:not([type="hidden"]):focus {
    border-color: #0b8b57;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(11, 139, 87, 0.10);
}

.login-card input::placeholder {
    color: #9aa9a1;

    font-size: 12px;
    font-weight: 400;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-card button {
    width: 100%;
    height: 52px;

    margin-top: 26px;

    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    border: 0;
    border-radius: 12px;

    background: #087c4d;

    color: #ffffff;

    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(8, 124, 77, 0.15);

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.login-card button:hover {
    background: #066a42;

    transform: translateY(-1px);

    box-shadow:
        0 11px 24px rgba(8, 105, 66, 0.20);
}

.login-card button:active {
    transform: translateY(0);
}


/* =========================================================
   BACK LINK
   ========================================================= */

.back {
    display: block;

    margin-top: 22px;

    color: var(--green);

    text-align: center;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.9;

    transition: color 0.18s ease;
}

.back:hover {
    color: var(--orange);
}


/* =========================================================
   ERROR
   ========================================================= */

.alert {
    margin: 0 0 17px;

    padding: 11px 14px;

    background: #fff3f1;

    color: #a72c24;

    border: 1px solid #f1d2ce;
    border-radius: 10px;

    font-size: 12px;

    line-height: 1.9;
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.copyright {
    margin: 20px 0 0;

    color: #8ca096;

    font-family: Arial, Tahoma, sans-serif;

    font-size: 11px;

    direction: ltr;

    text-align: center;
}


/* =========================================================
   MOBILE BRAND
   ========================================================= */

.mobile-brand {
    display: none;
}


/* =========================================================
   SHORT DESKTOP
   ========================================================= */

@media (min-width: 761px) and (max-height: 760px) {

    .intro {
        padding-top: 34px;
        padding-bottom: 31px;
    }

    .intro h1 {
        font-size: 37px;
        line-height: 1.65;
    }

    .intro p {
        margin-top: 11px;

        line-height: 2;
    }

    .form-side {
        padding-top: 17px;
        padding-bottom: 17px;
    }

    .login-card {
        padding-top: 29px;
        padding-bottom: 29px;
    }

    .login-card h2 {
        font-size: 25px;
    }

    .subheading {
        margin-bottom: 17px;
    }

    .login-card label {
        margin-top: 12px;
    }

    .login-card button {
        margin-top: 20px;
    }

    .back {
        margin-top: 16px;
    }

    .copyright {
        margin-top: 12px;
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1100px) and (min-width: 761px) {

    .login-shell {
        grid-template-columns: 38% 62%;
    }

    .intro {
        padding-left: 30px;
        padding-right: 30px;
    }

    .brand-icon {
        width: 58px;
        height: 58px;

        min-width: 58px;
        min-height: 58px;

        flex-basis: 58px;
    }

    .c2-logo-text {
        font-size: 27px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .intro h1 {
        font-size: 35px;
    }

    .intro p {
        font-size: 13px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    html,
    body {
        min-height: 100%;
    }

    .login-shell {
        display: block;

        width: 100%;

        min-height: 100dvh;
    }

    .intro {
        display: none;
    }

    .form-side {
        width: 100%;

        min-height: 100dvh;

        padding: 20px 15px;
    }

    .login-card {
        width: min(100%, 430px);

        padding: 27px 22px 29px;

        border-radius: 20px;
    }


    /* ---------- Mobile Brand ---------- */

    .mobile-brand {
        display: flex;

        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        gap: 11px;

        width: fit-content;

        margin: 0 0 25px auto;
    }

    .mobile-logo {
        width: 55px;
        height: 55px;

        min-width: 55px;
        min-height: 55px;

        flex: 0 0 55px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #ffffff;

        border: 1px solid #dce8e1;
        border-radius: 15px;

        box-shadow:
            0 7px 20px rgba(7, 72, 45, 0.08);

        direction: ltr;
    }

    .mobile-logo .c2-logo-text {
        font-size: 26px;
    }

    .mobile-brand-text {
        display: flex;
        flex-direction: column;

        align-items: flex-start;

        direction: rtl;
    }

    .mobile-brand-text strong {
        color: #153b2e;

        font-family: "Vazirmatn", Tahoma, Arial, sans-serif;

        font-size: 18px;
        font-weight: 700;

        line-height: 1.6;

        white-space: nowrap;
    }

    .mobile-brand-text small {
        margin-top: 0;

        color: var(--orange);

        font-family: Arial, Helvetica, sans-serif;

        font-size: 9px;
        font-weight: 700;

        letter-spacing: 1.5px;

        direction: ltr;
    }


    /* ---------- Mobile Form ---------- */

    .login-card h2 {
        font-size: 23px;

        line-height: 1.7;
    }

    .subheading {
        margin-bottom: 22px;

        font-size: 12.5px;

        line-height: 2;
    }

    .login-card input:not([type="hidden"]) {
        height: 51px;
    }

    .login-card button {
        height: 51px;

        margin-top: 24px;
    }

    .copyright {
        margin-top: 17px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .form-side {
        padding: 13px 11px;
    }

    .login-card {
        padding: 24px 18px 26px;

        border-radius: 18px;
    }

    .mobile-brand {
        margin-bottom: 22px;
    }

    .mobile-logo {
        width: 51px;
        height: 51px;

        min-width: 51px;
        min-height: 51px;

        flex-basis: 51px;
    }

    .mobile-logo .c2-logo-text {
        font-size: 24px;
    }

    .mobile-brand-text strong {
        font-size: 17px;
    }

    .login-card h2 {
        font-size: 21px;
    }

    .login-card label {
        margin-top: 15px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}