/* ==========================================================================
   The site of the customers of Nexora: a light page, one big card, the form
   on the right and a picture on the left.
   ========================================================================== */

:root {
    --page: #f3f4f6;
    --card: #ffffff;
    --ink: #111827;
    --ink-soft: #6b7280;
    --line: #e5e7eb;
    --line-soft: #f1f3f6;
    --radius: 28px;
    --shadow: 0 30px 80px rgba(15, 23, 42, .12);
    --font: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.9;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
a:hover { color: #000; }

/* ------------------------------------------------------------- the card */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 20px;
}
.auth-card {
    width: min(1000px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.auth-form {
    padding: 54px 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-art {
    position: relative;
    background: #0a1024;
    overflow: hidden;
}
.auth-art svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ------------------------------------------------------------- the form */
.auth-title {
    margin: 0 0 6px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.4px;
}
.auth-sub {
    margin: 0 0 30px;
    color: var(--ink-soft);
    font-size: 14px;
}
.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}
.field-wrap { position: relative; }
.field-wrap .ico {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}
.field input {
    width: 100%;
    height: 54px;
    padding: 0 46px 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, .07);
}
.field .hint {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.9;
}

.btn-primary {
    width: 100%;
    height: 56px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-primary .chev { width: 15px; height: 15px; }

.btn-ghost {
    width: 100%;
    height: 56px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.btn-ghost:hover { border-color: #111827; background: #fafafa; }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 6px;
    color: #9ca3af;
    font-size: 13px;
}
.divider::before, .divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line-soft);
}

.auth-links {
    margin-top: 26px;
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-soft);
}
.auth-links a { color: var(--ink-soft); }
.auth-links a:hover { color: var(--ink); }
.auth-bottom {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
}

.notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13.5px;
}
.notice.ok { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }

/* --------------------------------------------------------- the home page */
.home-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 20px;
}
.home-card {
    width: min(860px, 100%);
    padding: 44px 46px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.home-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}
.home-head img { width: 46px; height: 46px; border-radius: 14px; }
.home-head h1 { margin: 0; font-size: 21px; }
.home-head small { color: var(--ink-soft); font-size: 13px; }
.empty {
    padding: 34px 20px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    text-align: center;
    color: var(--ink-soft);
}

@media (max-width: 860px) {
    .auth-card { grid-template-columns: 1fr; min-height: 0; }
    .auth-art { order: -1; height: 220px; }
    .auth-form { padding: 34px 26px; }
}
