:root {
    --beiwe-accent: #e8871e;
    --beiwe-accent-dark: #c96f13;
    --beiwe-text: #262730;
    --beiwe-gray: #6b6f76;
    --beiwe-border: #e3e3e8;
    --beiwe-bg: #fafafa;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--beiwe-bg);
    color: var(--beiwe-text);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 100px;
}

.card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--beiwe-border);
    border-radius: 12px;
    padding: 32px 36px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.header img.logo {
    width: 72px;
    height: auto;
    margin-top: 2px;
}

.header h1 {
    margin: 0 0 2px;
    font-size: 2.1em;
    font-weight: 700;
}

.tagline {
    margin: 0;
    font-size: 0.95em;
    color: var(--beiwe-gray);
}

.tagline a {
    color: inherit;
}

.description {
    margin: 4px 0 0;
    font-size: 0.82em;
    color: var(--beiwe-gray);
    font-style: italic;
}

hr.divider {
    border: none;
    border-top: 1px solid var(--beiwe-border);
    margin: 22px 0;
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--beiwe-border);
    margin-bottom: 22px;
}

.tab-link {
    padding: 10px 16px;
    text-decoration: none;
    color: var(--beiwe-gray);
    font-size: 0.95em;
    border-bottom: 2px solid transparent;
}

.tab-link.active {
    color: var(--beiwe-text);
    border-bottom-color: var(--beiwe-accent);
    font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--beiwe-border);
    border-radius: 6px;
    font-size: 1em;
}

.field input:focus {
    outline: none;
    border-color: var(--beiwe-accent);
}

.field .errorlist {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    color: #c0362c;
    font-size: 0.85em;
}

.form-errors {
    background: #fdecea;
    color: #c0362c;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.88em;
}

.btn-primary {
    background: var(--beiwe-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--beiwe-accent-dark);
}

.caption {
    font-size: 0.85em;
    color: var(--beiwe-gray);
    margin-bottom: 14px;
}

.alerts { margin-bottom: 16px; }

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.88em;
    margin-bottom: 8px;
}

.alert-success { background: #e9f6ec; color: #1e7b34; }
.alert-error { background: #fdecea; color: #c0362c; }
.alert-info { background: #eaf2fb; color: #1958a8; }

.lang-row {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.lang-row select {
    padding: 6px 10px;
    border: 1px solid var(--beiwe-border);
    border-radius: 6px;
    font-size: 0.88em;
}

.footer-brand {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 69px;
    height: auto;
}

.footer-brand span {
    font-size: 0.88em;
    font-weight: 600;
}
