﻿:root {
    --bg: #ffffff;
    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --accent: #06B6D4;
    --right-bg: #EEF2FF;
    --shadow: 0 12px 30px rgba(15,23,42,.08);
    --maxw: 520px;
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}


* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

.auth-body {
    min-height: 100vh;
    font-family: var(--font);
    background: #fff;
}

/* Fullscreen Split */
.auth {
    min-height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

/* Left */
.auth__left {
    padding: 42px 46px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.auth__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.auth__brandname {
    font-weight: 900;
    letter-spacing: .6px;
}

.auth__brandtag {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.auth__content {
    margin-top: 52px;
    width: 100%;
    max-width: var(--maxw);
}

.auth__title {
    margin: 0 0 8px 0;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 900;
}

.auth__subtitle {
    margin: 0 0 26px 0;
    color: var(--muted);
    font-size: 15px;
}

/* Alert */
.auth__alert {
    margin: 0 0 14px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.22);
    color: #991b1b;
    font-weight: 700;
    font-size: 13px;
}

.auth__label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 18px 0 8px 0;
}

.auth__input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .auth__input:focus {
        border-color: rgba(91,61,187,.55);
        box-shadow: 0 0 0 4px rgba(91,61,187,.14);
    }

.auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 18px 0;
}

.auth__check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

    .auth__check input {
        width: 16px;
        height: 16px;
    }

.auth__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

    .auth__link:hover {
        text-decoration: underline;
    }

.auth__btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .05s ease, background .15s ease, border-color .15s ease;
}

    .auth__btn:active {
        transform: translateY(1px);
    }

.auth__btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}

    .auth__btn--primary:hover {
        background: var(--primary-dark);
    }

.auth__divider {
    margin: 16px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

    .auth__divider::before,
    .auth__divider::after {
        content: "";
        height: 1px;
        background: var(--border);
        flex: 1;
    }

.auth__btn--google {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

    .auth__btn--google:hover {
        border-color: rgba(17,24,39,.18);
    }

.auth__gicon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.auth__foot {
    margin: 16px 0 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* Right */
.auth__right {
    background: var(--right-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth__art {
    width: min(560px, 92%);
    filter: drop-shadow(0 24px 42px rgba(0,0,0,.12));
}

    .auth__art img {
        width: 100%;
        height: auto;
        display: block;
    }


/* Right: Fullscreen Hero Image */
.auth__right {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Bild als Hintergrund */
.auth__right--image {
    background-image: url("/img/login-illustration.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; 
}
    .auth__right--image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(79,70,229,.06), rgba(79,70,229,.12) );
    }


/* Mobile */
@media (max-width: 980px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .auth__right {
        display: none;
    }

    .auth__left {
        padding: 34px 22px;
    }

    .auth__content {
        margin-top: 40px;
    }

    .auth__title {
        font-size: 40px;
    }
}
