@font-face {
    font-family: Farsi_Vazir_Normal;
    src: url("../../media/font/Vazir.ttf");
}

:root {
    --bg: #111111;
    --surface: #1b1b1b;
    --surface-2: #252525;
    --line: #303030;
    --text: #ffffff;
    --muted: #888888;
    --accent: #8BAE66;
    --accent-2: #9fc477;
    --gold: #e8c766;
    --danger: #e5645c;
}

* {
    box-sizing: border-box;
}

[v-cloak] {
    display: none;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Farsi_Vazir_Normal, Arial, sans-serif;
    overflow-x: hidden;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* صفحه */

.auth-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

/* درخشش سبز پشت کارت (مثل فروشگاه) */
.auth-page::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    max-width: 100%;
    background: radial-gradient(closest-side, rgba(139, 174, 102, .18), transparent);
    pointer-events: none;
}


/* کارت */

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 34px 32px 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
    animation: authIn .55s ease both;
}

@keyframes authIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* لوگو */

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
    color: #fff;
    text-decoration: none;
}

.auth-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.auth-logo span {
    font-size: 20px;
    font-weight: bold;
}


/* عنوان */

.auth-form h1 {
    margin: 0;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}

.auth-description {
    margin: 10px 0 26px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}


/* پیام */

.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.9;
    border: 1px solid;
}

.auth-notice i {
    margin-top: 5px;
}

.auth-notice.ok {
    color: var(--accent);
    background: rgba(139, 174, 102, .1);
    border-color: rgba(139, 174, 102, .35);
}

.auth-notice.err {
    color: var(--danger);
    background: rgba(229, 100, 92, .1);
    border-color: rgba(229, 100, 92, .35);
}


/* Input */

.input-group-custom {
    margin-bottom: 18px;
}

.input-group-custom label {
    display: block;
    margin-bottom: 8px;
    color: #cfcfcf;
    font-size: 13px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper>i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
    transition: .2s;
}

.input-wrapper:focus-within>i {
    color: var(--accent);
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 0 44px 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: var(--bg);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: .2s;
}

.auth-input.ltr {
    direction: ltr;
    text-align: left;
}

.auth-input.ltr::placeholder {
    text-align: left;
}

.auth-input.has-toggle {
    padding-right: 44px;
    padding-left: 44px;
}

.auth-input::placeholder {
    color: #5f5f5f;
}

.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 174, 102, .15);
}

.pass-toggle {
    position: absolute;
    left: 6px;
    top: 67%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: 8px;
    transition: .2s;
}

.pass-toggle:hover {
    color: #fff;
    background: var(--surface-2);
}


/* دکمه */

.auth-btn {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #111;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.auth-btn:hover:not(:disabled) {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px -12px rgba(139, 174, 102, .6);
}

.auth-btn:disabled {
    opacity: .6;
    cursor: wait;
}


/* لینک‌ها */

.link-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--accent);
    font-family: inherit;
    font-size: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.link-btn:hover {
    color: var(--accent-2);
}

.forgot-link {
    display: block;
    margin: -4px 0 6px;
    font-size: 12px;
    font-weight: normal;
    color: var(--muted);
}

.forgot-link:hover {
    color: var(--accent);
}

.switch-auth {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}


/* بررسی لینک */

.auth-checking {
    text-align: center;
    padding: 40px 0;
    color: var(--muted);
}

.auth-checking .spinner-border {
    color: var(--accent);
    margin-bottom: 14px;
}


/* موبایل */

@media (max-width: 500px) {

    .auth-container {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .auth-form h1 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}