﻿
@font-face {
    font-family: 'iranyekan';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url('/fonts/woff/IRANYekanWebThin.woff') format('woff');
}

@font-face {
    font-family: 'iranyekan';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/woff/IRANYekanWebLightfanum.woff') format('woff');
}

@font-face {
    font-family: 'iranyekan';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/woff/IRANYekanWebRegularfanum.woff') format('woff');
}

@font-face {
    font-family: 'iranyekan';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/woff/IRANYekanWebMediumfanum.woff') format('woff');
}

@font-face {
    font-family: 'iranyekan';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/woff/IRANYekanWebBoldfanum.woff') format('woff');
}

@font-face {
    font-family: 'iranyekan';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/woff/IRANYekanWebExtraBoldfanum.woff') format('woff');
}

@font-face {
    font-family: 'iranyekan';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/fonts/woff/IRANYekanWebExtraBlackfanum.woff') format('woff');
}

body {
    margin: 0;
    font-family: iranyekan;
    background: #f4f4f4;
}


.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 40px 60px;
    background: #f6f6f6;
}
/* سمت تصویر */

.login-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .login-illustration img {
        width: 100%;
        max-width: 520px;
        object-fit: contain;
    }
/* سمت فرم */

.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  /*  text-align: center;*/
    background: transparent;
}

    .login-form-side form {
        width: 100%;
       
        max-width: 340px;
        display: flex;
        flex-direction: column;
    }


.welcome-box {
    margin-bottom: 25px;
    text-align: center;
    max-width: 340px;
}

    .welcome-box h3 {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.6;

    }

    .welcome-box p {
        font-size: 13px;
        color: #8c8c8c;
        line-height: 1.8;
    }
/* لیبل */
.login-form-side label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

/* فیلدها */
.login-form-side input {
    width: 100%;
    height: 48px;
    background: #ebebeb;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    margin-bottom: 18px;
    font-family: iranyekan;
    font-size: 14px;
    box-sizing: border-box;
}

    .login-form-side input::placeholder {
        color: #9ca3af;
    }

    .login-form-side input:focus {
        outline: none;
        background: #e8f8f7;
        box-shadow: 0 0 0 1px #7fd6d3;
    }

/* دکمه */
.login-btn {
    width: 100%;
    height: 32px;
    border: none;
    border-radius: 30px;
    background: #82d4d1;
    color: #fff;
    font-family: iranyekan;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
    margin:0 auto;
}

    .login-btn:hover {
        background: #6fc9c5;
    }

/* ثبت نام */
.register-link {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #666;
}

    .register-link a {
        color: #4ebeb8;
        text-decoration: none;
        font-weight: 700;
    }

/* موبایل */
@media(max-width:900px) {

    .login-page {
        flex-direction: column;
        gap: 0;
        padding: 15px;
    }

    .login-illustration {
        min-height: auto;
       /* padding: 10px 0;*/
       /* margin-bottom: 10px;*/
        margin-bottom: 0;
        padding-bottom: 0;
    }

        .login-illustration img {
            width: 100%;
            max-width: 220px;
        }

    .login-form-side {
      /*  padding: 10px 15px;*/
        padding-top: 0;
    }

        .login-form-side form {
            max-width: 100%;
        }

    .welcome-box {
        margin-bottom: 15px;
    }
}

/* =========================
   Desktop Large
========================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    /* مهم‌ترین اصلاح برای مانیتور بزرگ */
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================
   Laptop
========================= */
@media (max-width:1200px) {

    .login-page {
        gap: 50px;
        padding: 30px;
    }

    .login-illustration img {
        max-width: 450px;
    }

    .login-form-side {
        width: 380px;
    }
}

/* =========================
   Tablet
========================= */
@media (max-width:992px) {

    .login-page {
        gap: 30px;
        padding: 25px;
    }

    .login-illustration {
        flex: 1;
    }

        .login-illustration img {
            max-width: 350px;
        }

    .login-form-side {
        flex: 1;
        max-width: 380px;
    }

    .welcome-box h3 {
        font-size: 22px;
    }
}

/* =========================
   Mobile
========================= */
@media (max-width:768px) {

    .login-page {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 20px;
    }

    .login-illustration {
        width: 100%;
        margin: 0;
        padding: 0;
    }

        .login-illustration img {
            max-width: 240px;
            width: 100%;
        }

    .login-form-side {
        width: 100%;
        max-width: 380px;
        padding: 0;
    }

    .welcome-box {
        text-align: center;
        margin-bottom: 15px;
    }

        .welcome-box h3 {
            font-size: 24px;
        }

        .welcome-box p {
            font-size: 13px;
        }

    .login-form-side form {
        max-width: 100%;
    }
}

/* =========================
   Small Mobile
========================= */
@media (max-width:480px) {

    .login-illustration img {
        max-width: 180px;
    }

    .welcome-box h3 {
        font-size: 20px;
    }

    .welcome-box p {
        font-size: 12px;
    }

    .login-form-side input {
        height: 44px;
        font-size: 13px;
    }

    .login-btn {
        height: 46px;
        font-size: 13px;
    }

    .register-link {
        font-size: 12px;
    }
}