/* ---------------------------------------------------------
   login.css — Login-Seite (2-Panel, Nayax-Stil)
   Klassen sind mit login- präfixiert um Kollisionen zu vermeiden.
--------------------------------------------------------- */

.login-body {
    background: var(--surface);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 2-Spalten-Shell: links Form, rechts dunkel */
.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── Linke Seite: Formular ──────────────────────────── */
.login-card {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.login-logo {
    margin-bottom: 44px;
}
.login-logo img {
    height: 34px;
    width: auto;
    display: block;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -.3px;
    line-height: 1.2;
}
.login-sub {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Flash / error alerts */
.login-alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.login-alert--error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #b91c1c;
}
.login-alert--ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}
.login-alert strong { display: block; margin-bottom: 4px; }
.login-alert ul     { margin: 4px 0 0 16px; padding: 0; }

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.login-field span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}
.login-field input {
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.login-field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(228, 158, 0, .18);
}
.login-field input::placeholder { color: var(--text-mute); }

/* Submit button */
.login-submit {
    margin-top: 6px;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: background .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.login-submit:hover  { background: var(--brand-deep); }
.login-submit:active { transform: scale(.99); }

.login-footer {
    margin-top: 28px;
    font-size: 11.5px;
    color: var(--text-mute);
    line-height: 1.6;
}
.login-footer a       { color: var(--brand-deep); font-weight: 500; }
.login-footer a:hover { text-decoration: underline; }

/* ── Rechte Seite: dunkel mit Logo ──────────────────── */
.login-side {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    /*
     * Dark warm gradient background — no image required.
     * If login-bg.jpg is ever placed in /assets/img/, the
     * login-side--photo modifier can activate it.
     */
    background:
        radial-gradient(ellipse at 35% 45%, rgba(228, 158, 0, .13) 0%, transparent 58%),
        linear-gradient(148deg, #1e1b16 0%, #141210 55%, #0d0b09 100%);
}
.login-side--photo {
    background-image: url('/assets/img/login-bg.jpg');
    background-size: cover;
    background-position: center;
}

.login-side__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 7, 5, .76) 0%,
        rgba(18, 15, 10, .65) 100%
    );
    pointer-events: none;
}

.login-side__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.login-side__logo {
    width: min(70%, 300px);
    height: auto;
    display: block;
    filter: brightness(0) invert(1)
            drop-shadow(0 8px 28px rgba(0, 0, 0, .5));
    opacity: .9;
}

.login-side__tagline {
    color: rgba(255, 255, 255, .4);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.6;
    max-width: 260px;
}

/* Subtile Brand-Linie */
.login-side__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, transparent 60%);
    opacity: .6;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-side  { display: none; }
    .login-card  { padding: 48px 32px; }
}
@media (max-width: 480px) {
    .login-card  { padding: 36px 20px; }
    .login-card h1 { font-size: 20px; }
    .login-sub   { font-size: 13px; margin-bottom: 22px; }
}
