/* Shared auth pages: /admin login, change-password */
:root {
    --bg: #090d1a;
    --bg2: #101830;
    --card: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.14);
    --text: #f5f7ff;
    --muted: #aab3d1;
    --accent: #47e2ff;
    --accent2: #9b6bff;
    --ok: #41d89f;
    --danger: #ff8f8f;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(71, 226, 255, 0.22), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(155, 107, 255, 0.24), transparent 36%),
        radial-gradient(circle at 50% 100%, rgba(71, 226, 255, 0.08), transparent 40%),
        linear-gradient(145deg, var(--bg), var(--bg2));
}

.auth-shell {
    width: min(440px, 100%);
}

.auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(71, 226, 255, 0.25), rgba(155, 107, 255, 0.35));
    border: 1px solid var(--border);
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.auth-brand h1 {
    margin: 0 0 6px;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.auth-card {
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.auth-field {
    margin-top: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #dce3ff;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap input {
    width: 100%;
    padding: 12px 14px;
    padding-left: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input-wrap input::placeholder {
    color: rgba(170, 179, 209, 0.65);
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: rgba(71, 226, 255, 0.65);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(71, 226, 255, 0.18);
}

.auth-input-icon {
    position: absolute;
    right: 14px;
    font-size: 16px;
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.auth-toggle-pwd {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
}

.auth-toggle-pwd:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.auth-submit {
    margin-top: 20px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    color: #02111b;
    background: linear-gradient(135deg, var(--accent), #9efff4);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 24px rgba(71, 226, 255, 0.25);
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(71, 226, 255, 0.35);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.auth-msg {
    margin-bottom: 4px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.auth-msg.error {
    background: rgba(255, 143, 143, 0.12);
    border: 1px solid rgba(255, 143, 143, 0.35);
    color: #ffb8b8;
}

.auth-msg.ok {
    background: rgba(65, 216, 159, 0.12);
    border: 1px solid rgba(65, 216, 159, 0.35);
    color: #9ff5d0;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
}

.auth-footer a {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--accent);
}

.auth-hint {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65;
    text-align: center;
}
