.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-shell::before,
.login-shell::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    filter: blur(12px);
    opacity: 0.9;
    pointer-events: none;
}

.login-shell::before {
    width: 26rem;
    height: 26rem;
    top: -8rem;
    left: -6rem;
    background: radial-gradient(circle, rgba(92, 137, 214, 0.28), transparent 68%);
}

.login-shell::after {
    width: 22rem;
    height: 22rem;
    right: -4rem;
    bottom: -6rem;
    background: radial-gradient(circle, rgba(127, 178, 255, 0.18), transparent 68%);
}

.login-layout {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
    gap: 1.5rem;
    align-items: stretch;
}

.login-showcase {
    padding: 2.2rem;
    border-radius: 30px;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 7, 12, 0.08), rgba(4, 7, 12, 0.72)),
        radial-gradient(circle at top right, rgba(127, 178, 255, 0.18), transparent 28%);
}

.login-showcase-content,
.login-showcase-grid {
    position: relative;
    z-index: 1;
}

.login-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.showcase-image-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.showcase-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-image-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(4, 7, 12, 0.58), transparent);
}

.login-card {
    padding: 2rem;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tab {
    flex: 1;
    border-radius: 9999px;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.auth-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab.active {
    color: var(--text-primary);
    background: rgba(127, 178, 255, 0.15);
    border-color: rgba(127, 178, 255, 0.24);
}

.auth-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.auth-stack {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.login-shell > .relative.z-10 {
    width: min(440px, calc(100vw - 2rem));
    padding: 2rem;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
        rgba(12, 18, 28, 0.94) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px);
}

.login-shell > .relative.z-10::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(127, 178, 255, 0.08), transparent 30%);
    pointer-events: none;
}

.login-shell .auth-form {
    position: relative;
    z-index: 1;
}

.login-shell h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.login-shell .auth-form:first-of-type::before {
    content: "Der Einstieg nutzt jetzt dieselbe dunkle Oberfläche wie die App.";
    display: block;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.login-shell .auth-form:last-of-type::before {
    content: "Gleiche Oberfläche, gleicher Darkmode, nur mit neuem Account.";
    display: block;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.login-shell #registerForm > div:last-of-type label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

@media (max-width: 960px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 1rem;
    }

    .login-shell > .relative.z-10 {
        width: min(100%, calc(100vw - 2rem));
        padding: 1.25rem;
        border-radius: 24px;
    }

    .login-card,
    .login-showcase {
        border-radius: 24px;
        padding: 1.25rem;
    }

    .login-showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
}
