/* ============================================
   غلام‌رسان — صفحات auth (لاگین / رجیستر)
   وابسته به variables.css
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--night);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 24px 0;
}

/* بافت شب: چند ستاره‌ی ریز محو + هاله‌ی نرم پشت کارت */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, #ffffff22 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 70% 15%, #ffffff1a 50%, transparent 100%),
        radial-gradient(1px 1px at 85% 60%, #ffffff22 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 80%, #ffffff18 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 45%, #ffffff1a 50%, transparent 100%),
        radial-gradient(1px 1px at 12% 65%, #ffffff16 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 85%, #ffffff16 50%, transparent 100%);
    pointer-events: none;
}

/* هاله‌ی نرم پشت کارت، هم‌رنگ اکسنت */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #4fc3d914 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.card {
    position: relative;
    z-index: 1;
    width: 380px;
    max-width: 90vw;
    text-align: center;
}

.seal {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #66d4e6, var(--accent) 60%, #2f8fa3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Estedad', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--night);
    box-shadow: 0 0 0 6px #4fc3d914, 0 10px 30px -8px #4fc3d966;
}

.card h1 {
    font-family: 'Estedad', sans-serif;
    font-weight: 800;
    font-size: 30px;
    color: var(--text);
    letter-spacing: 0.5px;
}

.subtitle {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 6px;
    margin-bottom: 30px;
}

.field {
    text-align: right;
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 7px;
    padding-right: 2px;
}

.field input {
    width: 100%;
    background: var(--night-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 16px;
    color: var(--text);
    font-family: 'Estedad', sans-serif;
    font-size: 14px;
    transition: border-color 0.15s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
}

.field input::placeholder {
    color: #3B3465;
}

.field-row {
    display: flex;
    gap: 12px;
}

.field-row .field {
    flex: 1;
}

.submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: var(--night);
    font-family: 'Estedad', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.submit-btn:hover {
    filter: brightness(1.1);
}

.switch {
    margin-top: 22px;
    font-size: 13px;
    color: var(--muted);
}

.switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 18px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.divider span {
    font-size: 12px;
    color: var(--muted);
}

.error-msg {
    background: #ff5c7a14;
    border: 1px solid #ff5c7a44;
    color: #ff8fa3;
    font-size: 12.5px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: right;
    display: none;
    /* با PHP وقتی خطا بود، display:block بشه */
}