﻿/* =========================================================
   Nazeryar - Login
   Architecture × Software × Intelligence
   ========================================================= */

:root {
    --nazeryar-bg: #f4f1eb;
    --nazeryar-surface: #ffffff;
    --nazeryar-text: #242321;
    --nazeryar-muted: #77736c;
    --nazeryar-border: #ddd8cf;
    --nazeryar-accent: #8a6a45;
    --nazeryar-accent-dark: #705438;
    --nazeryar-danger: #b42318;
}


/* =========================================================
   Base
   ========================================================= */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Vazir', sans-serif;
    background: var(--nazeryar-bg);
}


/* =========================================================
   Page
   ========================================================= */

.nazeryar-login-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    overflow: hidden;
    background: var(--nazeryar-bg);
}


/* =========================================================
   Architectural Visual
   ========================================================= */

.nazeryar-login-visual {
    order: 2;
    flex: 0 0 60%;
    width: 60%;
    height: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eee9e1;
    border-left: 1px solid #e1dbd1;
}

/* =========================================================
   Blurred Background
   ========================================================= */


/* =========================================================
   Image Container
   ========================================================= */

.nazeryar-login-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 3vw, 48px);
    box-sizing: border-box;
    z-index: 1;
}

/* =========================================================
   Main Image
   ========================================================= */

.nazeryar-login-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow( 0 18px 35px rgba(55, 45, 35, 0.14) );
}


/* =========================================================
   Architectural Grid
   ========================================================= */

.nazeryar-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient( rgba(255, 255, 255, 0.10) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px );
    background-size: 48px 48px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 2;
}

/* =========================================================
   Login Panel
   ========================================================= */

.nazeryar-login-panel {
    order: 1;
    flex: 1 1 40%;
    width: 40%;
    height: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

    /* =========================================================
   Blueprint Decoration
   ========================================================= */

    .nazeryar-login-panel::after {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        left: -160px;
        bottom: -180px;
        background-image: linear-gradient( rgba(138, 106, 69, 0.08) 1px, transparent 1px ), linear-gradient( 90deg, rgba(138, 106, 69, 0.08) 1px, transparent 1px );
        background-size: 24px 24px;
        transform: rotate(-8deg);
        opacity: 0.45;
        pointer-events: none;
    }


/* =========================================================
   Login Card
   ========================================================= */

.nazeryar-login-card {
    width: 100%;
    max-width: 500px;
    padding: clamp(28px, 3vw, 48px);
    margin: auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* =========================================================
   Brand
   ========================================================= */

.nazeryar-login-brand {
    text-align: center;
    margin-bottom: 36px;
}


.nazeryar-login-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nazeryar-accent);
    font-size: 50px;
    font-weight: 700;
    border: 1px solid var(--nazeryar-border);
    background: #ffffff;
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(45, 38, 30, 0.06);
}

.nazeryar-login-brand-name {
    color: var(--nazeryar-text);
    font-family: 'Vazir', sans-serif;
    font-size: 42px;
    line-height: 1.35;
    font-weight: 800;
    margin: 0;
}

.nazeryar-login-brand-en {
    direction: ltr;
    color: var(--nazeryar-muted);
    font-size: 24px;
    letter-spacing: 0.42em;
    margin-top: 8px;
    margin-left: 0.42em;
}

.nazeryar-login-brand-description {
    color: var(--nazeryar-text);
    font-size: 14px;
    margin-top: 18px;
    line-height: 1.9;
}


.nazeryar-login-brand-tagline {
    color: var(--nazeryar-muted);
    font-size: 12px;
    margin-top: 3px;
}


/* =========================================================
   Form
   ========================================================= */

.nazeryar-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.nazeryar-login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.nazeryar-login-label {
    color: var(--nazeryar-text);
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   Inputs
   ========================================================= */

.nazeryar-login-input-wrapper {
    position: relative;
}


.nazeryar-login-input {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 46px;
    box-sizing: border-box;
    border: 1px solid var(--nazeryar-border);
    border-radius: 11px;
    background: #f9faff;
    color: var(--nazeryar-text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}


    .nazeryar-login-input::placeholder {
        color: #aaa49c;
    }


    .nazeryar-login-input:hover {
        background: #ffffff;
    }


    .nazeryar-login-input:focus {
        border-color: var(--nazeryar-accent);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(138, 106, 69, 0.10);
    }


/* =========================================================
   Input Icon
   ========================================================= */

.nazeryar-login-input-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 15px;
    transform: translateY(-50%);
    color: #8d8982;
    pointer-events: none;
}


/* =========================================================
   Password Toggle
   ========================================================= */

.nazeryar-login-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 13px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #77736c;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}


    .nazeryar-login-password-toggle:hover {
        color: var(--nazeryar-accent);
    }


/* =========================================================
   Options
   ========================================================= */

.nazeryar-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}


.nazeryar-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nazeryar-muted);
    cursor: pointer;
}


    .nazeryar-login-remember input {
        width: 16px;
        height: 16px;
        accent-color: var(--nazeryar-accent);
    }


/* =========================================================
   Login Button
   ========================================================= */

.nazeryar-login-button {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 11px;
    background: var(--nazeryar-accent);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}


    .nazeryar-login-button:hover {
        background: var(--nazeryar-accent-dark);
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(112, 84, 56, 0.18);
    }


    .nazeryar-login-button:active {
        transform: translateY(0);
    }


/* =========================================================
   Validation
   ========================================================= */

.nazeryar-login-validation {
    color: var(--nazeryar-danger);
    font-size: 12px;
    line-height: 1.8;
}


    .nazeryar-login-validation ul {
        margin-bottom: 0;
    }


/* =========================================================
   Footer
   ========================================================= */

.nazeryar-login-footer {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--nazeryar-muted);
    font-size: 11px;
}


    .nazeryar-login-footer::before,
    .nazeryar-login-footer::after {
        content: "";
        width: 50px;
        height: 1px;
        background: var(--nazeryar-border);
    }


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1200px) {

    .nazeryar-login-visual {
        flex-basis: 56%;
    }

    .nazeryar-login-panel {
        flex-basis: 44%;
    }

    .nazeryar-login-image-container {
        padding: 28px;
    }

    .nazeryar-login-card {
        max-width: 460px;
    }
}

/* =========================================================
   Tablet / Small Desktop
   ========================================================= */

@media (max-width: 991.98px) {

    .nazeryar-login-visual {
        flex: 0 0 40%;
        width: 40%;
    }

    .nazeryar-login-panel {
        flex: 1 1 60%;
        width: 60%;
    }

    .nazeryar-login-image-container {
        padding: 24px;
    }

    .nazeryar-login-card {
        padding: 30px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .nazeryar-login-page {
        display: block;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }


    .nazeryar-login-visual {
        width: 100%;
        height: 260px;
        min-height: 260px;
        display: flex;
    }


    .nazeryar-login-image-background {
        filter: blur(14px);
        opacity: 0.28;
    }


    .nazeryar-login-image-container {
        padding: 16px;
    }


    .nazeryar-login-panel {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 0;
    }


    .nazeryar-login-card {
        width: 100%;
        max-width: 480px;
        padding: 34px 22px 30px;
        margin: 0 auto;
    }


    .nazeryar-login-brand {
        margin-bottom: 30px;
    }


    .nazeryar-login-logo {
        width: 62px;
        height: 62px;
        font-size: 34px;
        border-radius: 15px;
    }


    .nazeryar-login-brand-name {
        font-size: 29px;
    }


    .nazeryar-login-brand-description {
        font-size: 13px;
    }


    .nazeryar-login-footer {
        margin-top: 28px;
    }
}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 420px) {

    .nazeryar-login-visual {
        height: 220px;
        min-height: 220px;
    }


    .nazeryar-login-image-container {
        padding: 12px;
    }


    .nazeryar-login-card {
        padding: 28px 18px 26px;
    }


    .nazeryar-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }


    .nazeryar-login-input {
        height: 52px;
    }


    .nazeryar-login-button {
        height: 52px;
    }
}
