/* common.css – Zen'Air shared dark-theme foundation */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

:root {
    --bg-1: #0f172a;
    --bg-2: #0ea5e9;
    --line: rgba(255, 255, 255, 0.28);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.88);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(980px 500px at 15% -10%, rgba(56, 189, 248, 0.25), transparent 56%),
        radial-gradient(720px 420px at 95% 10%, rgba(34, 197, 94, 0.2), transparent 56%),
        linear-gradient(140deg, var(--bg-1), var(--bg-2));
    padding: 20px;
}

/* ── Back / top link ── */
.top-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    text-decoration: none;
    color: #1f2937;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease;
}
.top-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

/* ── Language selector ── */
.language-selector {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.language-selector img {
    width: 36px;
    height: 24px;
    border-radius: 7px;
    cursor: pointer;
    opacity: 0.62;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    filter: saturate(0.84);
}
.language-selector img:hover {
    transform: translateY(-1px) scale(1.04);
    opacity: 0.9;
    filter: saturate(1);
}
.language-selector img.is-active {
    opacity: 1;
    filter: saturate(1.08);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.6), 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* ── Glass card ── */
.wrap {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(8, 12, 46, 0.42);
    padding: clamp(20px, 4vw, 30px);
}

/* ── Eyebrow badge ── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #bbf7d0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ── Typography ── */
h1 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
}
.subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Form fields ── */
.field {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}
label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #c7e9ff;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}
input {
    height: 42px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 0 11px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input:focus {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
    background: rgba(255, 255, 255, 0.22);
}

/* ── Buttons ── */
.actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    border: none;
    border-radius: 999px;
    min-width: 220px;
    height: 46px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.btn-primary {
    color: #062f2f;
    background: linear-gradient(135deg, #34d399, #22d3ee);
    box-shadow: 0 12px 22px rgba(34, 211, 238, 0.25);
}
.btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, #6f42c1, #e91e63);
    box-shadow: 0 12px 22px rgba(233, 30, 99, 0.22);
}

/* ── Status messages ── */
.status {
    margin-top: 14px;
    font-size: 0.92rem;
    min-height: 1.3em;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.status.ok  { color: #6ee7b7; }
.status.err { color: #fca5a5; }

/* ── Responsive ── */
@media (max-width: 760px) {
    body { padding: 14px; }
    .top-link { top: 12px; left: 12px; }
    .wrap { border-radius: 18px; }
    .btn { width: 100%; min-width: 0; }
}
