:root {
    --bg-main: #070809;
    --bg-soft: #111217;
    --card-bg: rgba(16, 18, 24, 0.92);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f5f7fa;
    --text-soft: #9fa6b2;
    --gold: #d4af37;
    --gold-2: #f0cc64;
    --danger-bg: rgba(255, 82, 111, 0.12);
    --danger-border: rgba(255, 82, 111, 0.32);
    --danger-text: #ffb8c4;
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Vazirmatn, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.10), transparent 18%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05), transparent 22%),
        linear-gradient(135deg, #050607 0%, #0c0d12 45%, #11131a 100%);
    color: var(--text-main);
}

body.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.10), transparent 25%),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.04), transparent 18%),
        radial-gradient(circle at 50% 85%, rgba(212, 175, 55, 0.08), transparent 25%);
}

.auth-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #111;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

.auth-brand-text h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.auth-brand-text p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.auth-heading {
    margin-bottom: 22px;
}

.auth-heading h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
}

.auth-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.9;
}

.auth-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.9;
}

.auth-alert-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #eceef2;
}

.auth-input {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    padding: 0 16px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.auth-input::placeholder {
    color: #7f8694;
}

.auth-input:focus {
    border-color: rgba(212, 175, 55, 0.72);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.auth-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #111;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 14px 34px rgba(212, 175, 55, 0.24);
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(212, 175, 55, 0.28);
}

.auth-btn:active {
    transform: translateY(0);
    opacity: 0.96;
}

.auth-footer {
    margin: 6px 0 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    margin-right: 4px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .auth-page-wrap {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .auth-heading h2 {
        font-size: 24px;
    }

    .auth-brand-badge {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
}
