﻿/* ─── Design Tokens (same as dashboard) ─── */
:root {
    --accent: #4f8ef7;
    --accent2: #7c5cfc;
    --accent3: #22d3a5;
    --danger: #f75f5f;
    --warning: #f7c44f;
    --radius: 14px;
    --transition: 0.22s cubic-bezier(.4,0,.2,1);
    --theme-transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    /* Dark (default) */
    --bg-base: #0f1117;
    --bg-card: #181c25;
    --bg-card2: #1e2332;
    --text-main: #e8eaf2;
    --text-muted: #6b7394;
    --border: rgba(255,255,255,0.06);
    --shadow: none;
    --panel-bg: #13161f;
}

@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSans-web.eot');
    src: url('fonts/IRANSans-web.eot') format('eot'), 
        url('fonts/IRANSans-web.woff2') format('woff2'), 
        url('fonts/IRANSans-web.woff') format('woff'), 
        url('fonts/IRANSans-web.ttf') format('ttf');
    font-weight: normal;
}

html.light {
    --bg-base: #f0f2f7;
    --bg-card: #ffffff;
    --bg-card2: #f5f7fc;
    --text-main: #1a1d2e;
    --text-muted: #8892b0;
    --border: rgba(0,0,0,0.08);
    --shadow: 0 2px 16px rgba(79,142,247,0.07);
    --panel-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IRANSans', sans-serif;
    background: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    transition: var(--theme-transition);
    overflow: hidden;
}

/* ─── Theme Toggle ─── */
.theme-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 17px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--theme-transition), transform var(--transition);
}

    .theme-btn:hover {
        color: var(--text-main);
        transform: scale(1.08);
    }

html.light .theme-btn {
    color: var(--warning);
}

/* ─── Split Layout ─── */
.login-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Panel – decorative */
.deco-panel {
    flex: 1;
    position: relative;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    transition: var(--theme-transition);
}

    /* Animated background mesh */
    .deco-panel::before {
        content: '';
        position: absolute;
        inset: -40%;
        background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(79,142,247,0.18) 0%, transparent 70%), radial-gradient(ellipse 50% 60% at 75% 70%, rgba(124,92,252,0.15) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 60% 20%, rgba(34,211,165,0.10) 0%, transparent 70%);
        animation: meshMove 12s ease-in-out infinite alternate;
    }

html.light .deco-panel::before {
    background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(79,142,247,0.12) 0%, transparent 70%), radial-gradient(ellipse 50% 60% at 75% 70%, rgba(124,92,252,0.10) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 60% 20%, rgba(34,211,165,0.08) 0%, transparent 70%);
}

@keyframes meshMove {
    0% {
        transform: translate(0,0) rotate(0deg);
    }

    100% {
        transform: translate(3%,4%) rotate(3deg);
    }
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: orbFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.orb1 {
    width: 280px;
    height: 280px;
    background: var(--accent);
    top: -60px;
    right: -60px;
    animation-delay: 0s;
}

.orb2 {
    width: 200px;
    height: 200px;
    background: var(--accent2);
    bottom: 40px;
    left: 40px;
    animation-delay: -3s;
}

.orb3 {
    width: 160px;
    height: 160px;
    background: var(--accent3);
    top: 50%;
    left: 50%;
    animation-delay: -6s;
    opacity: 0.2;
}

html.light .orb {
    opacity: 0.15;
}

@keyframes orbFloat {
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(20px,25px) scale(1.08);
    }
}

/* Grid dots pattern */
.grid-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

html.light .grid-dots {
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
}

.deco-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 380px;
}

.deco-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79,142,247,0.12);
    border: 1px solid rgba(79,142,247,0.25);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.deco-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.deco-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Feature list */
.feature-list {
    list-style: none;
    text-align: right;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

    .feature-item:last-child {
        border-bottom: none;
    }

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
}

.fi-blue {
    background: rgba(79,142,247,0.15);
    color: var(--accent);
}

.fi-green {
    background: rgba(34,211,165,0.15);
    color: var(--accent3);
}

.fi-purple {
    background: rgba(124,92,252,0.15);
    color: var(--accent2);
}

.fi-yellow {
    background: rgba(247,196,79,0.15);
    color: var(--warning);
}

/* Stats strip */
.stats-strip {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}



.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    animation: fadeUp 0.5s ease both 0.05s;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(79,142,247,0.35);
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.brand-tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: -2px;
    letter-spacing: 0.5px;
}

.form-head {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeUp 0.5s ease both 0.1s;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Input Fields ─── */
.field-group {
    width: 100%;
    margin-bottom: 18px;
    animation: fadeUp 0.5s ease both;
}

    .field-group:nth-child(1) {
        animation-delay: 0.15s;
    }

    .field-group:nth-child(2) {
        animation-delay: 0.20s;
    }

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.3px;
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: color var(--transition);
}

.field-input {
    width: 100%;
    background: var(--bg-card2);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    color: var(--text-main);
    font-family: 'IRANSans', sans-serif;
    font-size: 14px;
    padding: 13px 44px 13px 44px;
    outline: none;
    transition: var(--theme-transition), border-color var(--transition), box-shadow var(--transition);
}

    .field-input::placeholder {
        color: var(--text-muted);
        font-size: 13px;
    }

    .field-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
    }

        .field-input:focus + .field-icon-left,
        .field-input:focus ~ .field-icon {
            color: var(--accent);
        }

/* left eye icon for password */
.field-eye {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
}

    .field-eye:hover {
        color: var(--accent);
    }

/* ─── Options Row ─── */
.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    animation: fadeUp 0.5s ease both 0.25s;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.custom-check {
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: var(--bg-card2);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: var(--theme-transition), border-color var(--transition);
}

    .custom-check input {
        display: none;
    }

    .custom-check .check-mark {
        display: none;
        color: #fff;
        font-size: 10px;
    }

    .custom-check.checked {
        background: var(--accent);
        border-color: var(--accent);
    }

        .custom-check.checked .check-mark {
            display: block;
        }

.forgot-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition);
}

    .forgot-link:hover {
        opacity: 0.75;
    }

/* ─── Submit Button ─── */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 11px;
    color: #fff;
    font-family: 'IRANSans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 4px 20px rgba(79,142,247,0.35);
    animation: fadeUp 0.5s ease both 0.30s;
    letter-spacing: 0.2px;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(79,142,247,0.45);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
        pointer-events: none;
    }

/* ─── Divider ─── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    animation: fadeUp 0.5s ease both 0.35s;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ─── Social Buttons ─── */
.social-row {
    display: flex;
    gap: 10px;
    width: 100%;
    animation: fadeUp 0.5s ease both 0.40s;
}

.btn-social {
    flex: 1;
    background: var(--bg-card2);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: 'IRANSans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 11px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: var(--theme-transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

    .btn-social:hover {
        border-color: var(--accent);
        color: var(--text-main);
        transform: translateY(-1px);
    }

    .btn-social i {
        font-size: 16px;
    }

/* ─── Register Link ─── */
.register-line {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    animation: fadeUp 0.5s ease both 0.45s;
}

    .register-line a {
        color: var(--accent);
        text-decoration: none;
        font-weight: 600;
        margin-right: 4px;
    }

        .register-line a:hover {
            text-decoration: underline;
        }

/* ─── Floating shapes (form panel bg decor) ─── */
.shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.04;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
}

.shape2 {
    width: 180px;
    height: 180px;
    background: var(--accent2);
    top: 80px;
    left: -80px;
}

html.light .shape {
    opacity: 0.06;
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
    .deco-panel {
        width: 100%;
        padding: 48px 28px;
        border-right: none;
    }
}

@media (max-width: 420px) {
    .deco-panel {
        padding: 40px 20px;
    }
}
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}