/* Vollbild Login / Registrieren (50/50 Gemini-Stil) */

body.cms-auth-fullpage-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

body.cms-auth-fullpage-body.cms-landing-theme {
    background-color: var(--lp-bg-color);
    color: var(--lp-text-main);
    transition: background-color 0.35s ease, color 0.35s ease;
}

#cms-auth-fullpage.cms-auth-gemini {
    --text-main: var(--lp-text-main, #1f2937);
    --text-muted: var(--lp-text-muted, #6b7280);
    --ai-blue: var(--lp-ai-blue, #2a85ff);
    --ai-purple: var(--lp-ai-purple, #bc34ff);
    --ai-pink: var(--lp-ai-pink, #ff578a);
    --transition-smooth: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

#cms-auth-fullpage.cms-auth-gemini *,
#cms-auth-fullpage.cms-auth-gemini *::before,
#cms-auth-fullpage.cms-auth-gemini *::after {
    box-sizing: border-box;
}

#cms-auth-fullpage .cms-auth-back {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

#cms-auth-fullpage .cms-auth-back:hover {
    color: var(--ai-purple);
    transform: translateX(-2px);
}

#cms-auth-fullpage .cms-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    background: var(--lp-auth-brand-gradient);
    overflow: hidden;
    transition: background 0.35s ease;
}

#cms-auth-fullpage .cms-auth-brand-glow {
    position: absolute;
    inset: -20% -30% auto -20%;
    height: 70%;
    background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(188, 52, 255, 0.15), rgba(42, 133, 255, 0.08), transparent 65%);
    pointer-events: none;
    animation: cms-auth-glow-drift 12s ease-in-out infinite alternate;
}

@keyframes cms-auth-glow-drift {
    0% { opacity: 0.85; transform: scale(1) translate(0, 0); }
    100% { opacity: 1; transform: scale(1.05) translate(2%, -1%); }
}

#cms-auth-fullpage .cms-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 901px) {
    #cms-auth-fullpage .cms-auth-brand-inner {
        text-align: left;
        margin: 0 0 0 8%;
    }
}

#cms-auth-fullpage .cms-auth-brand-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

#cms-auth-fullpage .cms-auth-brand h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    color: var(--text-main);
}

#cms-auth-fullpage .cms-auth-brand-tag {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0;
    line-height: 1.55;
}

#cms-auth-fullpage .gradient-text {
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple), var(--ai-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

#cms-auth-fullpage .cms-auth-brand-sparkle {
    width: 40px;
    height: 40px;
    margin: 1.5rem auto 0;
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.5 8.5L23 11l-8.5 2.5L12 22l-2.5-8.5L1 11l8.5-2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.5 8.5L23 11l-8.5 2.5L12 22l-2.5-8.5L1 11l8.5-2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.9;
    animation: cms-auth-sparkle 4s ease-in-out infinite;
}

@keyframes cms-auth-sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(1.08) rotate(8deg); opacity: 1; }
}

@media (min-width: 901px) {
    #cms-auth-fullpage .cms-auth-brand-sparkle {
        margin: 1.5rem 0 0;
    }
}

#cms-auth-fullpage .cms-auth-main {
    background: var(--lp-auth-main-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    overflow-y: auto;
    border-left: 1px solid var(--lp-auth-main-border);
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

#cms-auth-fullpage .cms-auth-forms-grid {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

#cms-auth-fullpage .cms-auth-panel {
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 20px;
    padding: 1.35rem 1.25rem 1.5rem;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

#cms-auth-fullpage .cms-auth-panel:hover {
    box-shadow: 0 12px 40px -12px rgba(188, 52, 255, 0.12);
    border-color: rgba(188, 52, 255, 0.2);
}

#cms-auth-fullpage .cms-auth-panel--highlight {
    border-color: rgba(188, 52, 255, 0.35);
    box-shadow: 0 8px 32px -8px rgba(188, 52, 255, 0.18);
}

#cms-auth-fullpage .cms-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

#cms-auth-fullpage .cms-auth-label-row .cms-auth-label {
    margin-bottom: 0;
}

#cms-auth-fullpage .cms-auth-valid-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    color: #15803d;
}

#cms-auth-fullpage .cms-auth-valid-icon-wrap.is-visible {
    opacity: 1;
    transform: scale(1);
}

#cms-auth-fullpage .cms-auth-valid-icon-wrap svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

#cms-auth-fullpage .cms-auth-field-feedback {
    font-size: 0.78rem;
    margin: -4px 0 12px;
    min-height: 1.25em;
    line-height: 1.35;
}

#cms-auth-fullpage .cms-auth-field-feedback--ok {
    color: #15803d;
}

#cms-auth-fullpage .cms-auth-field-feedback--err {
    color: #b91c1c;
}

#cms-auth-fullpage .cms-auth-input--ok:not(:focus) {
    border-color: rgba(21, 128, 61, 0.4);
}

#cms-auth-fullpage .cms-auth-input--warn:not(:focus) {
    border-color: rgba(185, 28, 28, 0.45);
}

#cms-auth-fullpage .cms-auth-ready-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 500;
    margin: -6px 0 12px;
    min-height: 1.35em;
}

#cms-auth-fullpage .cms-auth-ready-indicator[hidden] {
    display: none !important;
}

#cms-auth-fullpage .cms-auth-ready-indicator svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

#cms-auth-fullpage .cms-auth-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 10px 0 0;
    font-weight: 300;
}

#cms-auth-fullpage .cms-auth-hint--tight {
    margin-top: -6px;
    margin-bottom: 12px;
}

#cms-auth-fullpage .cms-auth-panel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

#cms-auth-fullpage .cms-auth-notice-error {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.88rem;
    margin-bottom: 14px;
    background: rgba(255, 87, 138, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(255, 87, 138, 0.25);
}

#cms-auth-fullpage .cms-auth-notice-success {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.88rem;
    margin-bottom: 14px;
    background: rgba(21, 128, 61, 0.08);
    color: #166534;
    border: 1px solid rgba(21, 128, 61, 0.28);
}

#cms-auth-fullpage .cms-auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-main);
}

#cms-auth-fullpage .cms-auth-input {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--lp-auth-input-border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    background: var(--lp-auth-input-inner-bg);
    color: var(--text-main);
}

#cms-auth-fullpage .cms-auth-input:focus {
    outline: none;
    border-color: rgba(188, 52, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(188, 52, 255, 0.12);
}

#cms-auth-fullpage .cms-auth-pw-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 12px;
}

#cms-auth-fullpage .cms-auth-pw-row .cms-auth-input {
    margin-bottom: 0;
    flex: 1;
    border-radius: 12px 0 0 12px;
    border-right: none;
}

#cms-auth-fullpage .cms-auth-toggle-pw {
    flex-shrink: 0;
    width: 46px;
    border: 1px solid var(--lp-auth-input-border);
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: var(--lp-auth-input-toggle-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
}

#cms-auth-fullpage .cms-auth-toggle-pw:hover {
    color: var(--text-main);
    background: var(--lp-auth-input-toggle-hover);
}

#cms-auth-fullpage .cms-auth-submit {
    width: 100%;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(188, 52, 255, 0.28);
    transition: var(--transition-smooth);
}

#cms-auth-fullpage .cms-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(188, 52, 255, 0.38);
}

#cms-auth-fullpage .cms-auth-meta {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--lp-auth-meta-border);
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

#cms-auth-fullpage .cms-auth-meta a {
    color: var(--ai-purple);
    font-weight: 600;
    text-decoration: none;
}

#cms-auth-fullpage .cms-auth-meta a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    #cms-auth-fullpage.cms-auth-gemini {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    #cms-auth-fullpage .cms-auth-brand {
        min-height: auto;
        padding: 2rem 1.25rem 1.75rem;
        padding-top: 3rem;
    }

    #cms-auth-fullpage .cms-auth-brand-inner {
        margin: 0 auto;
        text-align: center;
    }

    #cms-auth-fullpage .cms-auth-brand-sparkle {
        margin: 1.25rem auto 0;
    }

    #cms-auth-fullpage .cms-auth-main {
        border-left: none;
        border-top: 1px solid var(--lp-auth-main-border);
    }
}
