/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
main {
    flex: 1;
    display: flex;
    align-items: stretch;
    border-top: 2px solid var(--text);
}

.login-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: calc(100vh - 120px);
}

/* ════════════════════════════════════════
   LINKE SEITE — Deko
════════════════════════════════════════ */
.login-deco {
    background: var(--card);
    border-right: 2px solid var(--text);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deco-bg-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(5rem, 15vw, 13rem);
    line-height: 0.8;
    letter-spacing: -0.02em;
    color: rgba(0,0,0,0.06);
    text-align: center;
    user-select: none;
    pointer-events: none;
    transform: rotate(-8deg);
}

body.dark .deco-bg-text {color: rgba(255,255,255,0.05);
}

.deco-lines {
    position: absolute;
    bottom: 48px;
    left: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deco-lines span {
    display: block;
    height: 2px;
    background: var(--text);
    opacity: 0.15;
}

.deco-lines span:nth-child(1) { width: 60px; }
.deco-lines span:nth-child(2) { width: 40px; }
.deco-lines span:nth-child(3) { width: 20px; }

/* ════════════════════════════════════════
   RECHTE SEITE — Formular
════════════════════════════════════════ */
.login-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    gap: 28px;
    overflow-y: auto;
}

.login-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.06em;
    line-height: 0.9;
    color: var(--text);
    margin-bottom: 12px;
    transform: rotate(-0.8deg);
    display: inline-block;
}

.login-header p {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    font-style: italic;
    letter-spacing: 0.05em;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    padding: 12px 14px;
    border: 2px solid var(--text);
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    outline: none;
    width: 100%;
    transition: background 0.15s, box-shadow 0.15s;
}

.field input:focus {
    background: var(--card);
    box-shadow: 4px 4px 0 var(--text);
}

.field input::placeholder {
    color: var(--muted);
    font-style: italic;
}

/* Vorname + Nachname nebeneinander */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* AGB Checkbox */
.field--check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.field--check label {
    font-size: 10px;
    letter-spacing: 0.08em;
    cursor: pointer;
    line-height: 1.7;
}

.field--check label a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    transition: opacity 0.15s;
}

.field--check label a:hover { opacity: 0.5; }

.field--check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Submit */
.login-form button[type="submit"] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    background: var(--text);
    color: var(--bg);
    border: 2px solid var(--text);
    border-radius: 0;
    padding: 12px 20px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.1s;
    text-align: left;
}

.login-form button[type="submit"]:hover {
    background: var(--bg);
    color: var(--text);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--text);
}

.login-form button[type="submit"]:active {
    transform: translate(0, 0);
    box-shadow: none;
}

/* Links */
.login-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.login-links a {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    width: fit-content;
    transition: border-color 0.15s, opacity 0.15s;
}

.login-links a:hover {
    border-bottom-color: var(--text);
    opacity: 0.6;
}

/* ════════════════════════════════════════
   FEHLERMELDUNGEN (Formular + Popup)
════════════════════════════════════════ */
.form-errors {
    border: 2px solid #b3261e;
    background: rgba(179, 38, 30, 0.08);
    padding: 12px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #b3261e;
}

.form-errors p { margin: 0; }
.form-errors p + p { margin-top: 6px; }

/* ════════════════════════════════════════
   POPUP: NEUES PASSWORT
   (Restliche Modal-Styles kommen aus global.css)
════════════════════════════════════════ */
#resetPasswordModal .login-form {
    gap: 16px;
    max-width: none;
}

.modal-text-btn--primary {
    background: var(--text);
    color: var(--bg);
}

.modal-text-btn--primary:hover {
    background: var(--bg);
    color: var(--text);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 700px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-deco { display: none; }
    .login-form-wrap { padding: 40px 24px; }
    .field-row { grid-template-columns: 1fr; }
}