html, body { height: 100%; }
body {
    margin: 0;
    background: linear-gradient(135deg, #0b1b3a 0%, #000000 100%);
    color: #e6eefc;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.center-wrapper {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 0.05em;
    color: #111827;
    font-family: ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.brand-text {
    letter-spacing: -0.01em;
}
.brand-dot {
    color: #f97316;
    margin: 0 2px;
}
.brand-suffix {
    color: #d1d5db;
    letter-spacing: -0.01em;
    position: relative;
}
.logo-container {
    width: 3rem;
    height: 3rem;
    background: #030712;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    padding: 4px;
}
.logo-text {
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.08em;
}
.logo-text .logo-dot {
    color: #f97316;
}
@media (prefers-color-scheme: dark) {
    .logo-container {
        background: #030712;
        border-color: rgba(255, 255, 255, 0.2);
    }
    .logo-text {
        color: #ffffff;
    }
    .brand {
        color: #f9fafb;
    }
    .brand-suffix {
        color: #6b7280;
    }
}
.title { margin: 8px 0 6px; font-size: 32px; }
.subtitle { margin: 0 0 18px; color: #b7c7e6; }
.meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.meta-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 10px 12px; }
.meta-item code { color: #d6e2ff; }
.links { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.links--center { justify-content: center; }
.btn, button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #e6eefc; text-decoration: none;
    transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.form button[type="submit"] {
    background: #6fb4ff;
    border-color: #6fb4ff;
    color: #081327;
}
.form button[type="submit"]:hover {
    background: #82c0ff;
    border-color: #82c0ff;
}
.btn:hover, button:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.btn--primary {
    background: #6fb4ff;
    border-color: #6fb4ff;
    color: #081327;
}
.btn--primary:hover {
    background: #82c0ff;
    border-color: #82c0ff;
}
.muted { color: #a6b4d3; }

.language-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(5, 10, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    z-index: 10;
}

.language-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #d3def5;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.language-switcher__link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f2f6ff;
}

.language-switcher__link.is-active {
    background: rgba(130, 170, 255, 0.25);
    border-color: rgba(130, 170, 255, 0.6);
    color: #f7faff;
}


form {
    margin-top: 24px;
}

.form > form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    ul {
        color: #c40000;
        padding: 0;
    }
}

.form > form.stacked-form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.form > form.stacked-form > * {
    width: 100%;
}

.form > form.stacked-form button[type="submit"] {
    align-self: flex-end;
}

.form > * {
    flex: 1;
}

input, label {
    padding: .3rem .5rem;
}

.md-field {
    position: relative;
    display: grid;
    gap: 8px;
}

.md-input,
.md-field textarea,
.md-field select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(4, 10, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 18px 14px 12px;
    color: #e6eefc;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.md-input:focus,
.md-field textarea:focus,
.md-field select:focus {
    border-color: rgba(130, 170, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(110, 150, 240, 0.18);
    background: rgba(8, 16, 34, 0.75);
}

.md-label {
    position: absolute;
    left: 12px;
    top: 16px;
    font-size: 14px;
    color: #a8b8dd;
    background: rgba(6, 12, 28, 0.85);
    padding: 0 6px;
    border-radius: 8px;
    pointer-events: none;
    transition: transform .15s ease, color .15s ease, top .15s ease;
}

.md-input:focus + .md-label,
.md-input:not(:placeholder-shown) + .md-label,
.md-field textarea:focus + .md-label,
.md-field textarea:not(:placeholder-shown) + .md-label,
.md-field select + .md-label {
    top: 6px;
    transform: translateY(-8px) scale(0.92);
    color: #c5d6ff;
}

.md-errors {
    color: #ff7a7a;
    font-size: 13px;
}

.md-field--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.md-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #8ab4ff;
}

.md-checkbox-label {
    padding: 0;
    color: #cbd7f1;
    font-size: 15px;
}



button {
    padding: .8rem .8rem;
}
.brand-header {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sf-toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}
