/* =========================================================
   Phoenix Theme
   ========================================================= */

:root {
    --color-bg: #f6f8fb;
    --color-card: #ffffff;
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-error: #dc2626;
    --color-text: #111827;
    --border-radius: 6px;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --font-base: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   Global Layout
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-bottom: 80px; /* Höhe des Footers */
    min-height: 100vh;
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
}

/* =========================================================
   Containers
   ========================================================= */

.login-wrapper {
    width: 100%;
    max-width: 520px;
}

.alert {
    background: var(--color-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert .title {
    font-weight: 700;
    color: var(--color-error);
    margin-bottom: .5rem;
}

/* =========================================================
   Typography
   ========================================================= */

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* =========================================================
   Form
   ========================================================= */

form {
    background: var(--color-card);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

label {
    display: block;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

input {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* =========================================================
   Buttons
   ========================================================= */

button {
    width: 100%;
    padding: 0.7rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    background: var(--color-primary);
    color: #fff;
}

button:hover {
    background: var(--color-primary-hover);
}

/* =========================================================
   Errors & Debug
   ========================================================= */

.err {
    display: block;
    margin-top: .25rem;
    font-size: .8rem;
    color: var(--color-error);
}

pre {
    background: #f3f4f6;
    padding: .75rem;
    border-radius: var(--border-radius);
    font-size: .8rem;
    overflow-x: auto;
    margin-top: .75rem;
}


.lang-switch {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.lang-switch img {
    width: 26px;
    height: 18px;
    border-radius: 3px;

    /* ❌ Rahmen / Border entfernen */
    box-shadow: none;
    border: none;

    transition: transform 0.12s ease, opacity 0.12s ease;
}

.lang-switch img:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

/* aktive Sprache: nur dezente Hervorhebung, KEIN Rahmen */
.lang-switch a.active img {
    opacity: 1;
    transform: scale(1.12);
}
