/* =============================================
   AOE AUTH MODAL – PREMIUM DARK DESIGN
   Basierend auf FRANCHISE/FRsignup.css (Version 2.0)
   Konfliktfrei durch #au-modal Prefix
   Lesbarkeit optimiert, moderne Optik
============================================= */

/* Modal-Hintergrund (Overlay) */
#au-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000 !important;
}

.au-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: -1;
}

/* Dialog-Kasten – modern, dunkel, abgerundet */
#au-modal .au-dialog {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #1e2937 100%);
    border-radius: 32px;
    width: 90%;
    max-width: 480px;
    padding: 2rem 2rem 2rem 2rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #e2e8f0;
    scrollbar-width: thin;
}

/* Scrollbar im Dialog (Webkit) */
#au-modal .au-dialog::-webkit-scrollbar {
    width: 6px;
}
#au-modal .au-dialog::-webkit-scrollbar-track {
    background: #1e2937;
    border-radius: 10px;
}
#au-modal .au-dialog::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 10px;
}

/* Schließen-Button */
#au-modal .au-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    font-weight: 400;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
    width: auto;
    padding: 0;
    line-height: 1;
}

#au-modal .au-close:hover {
    color: #00d4ff;
    transform: scale(1.1);
}

/* Panes – ein-/ausblenden */
#au-modal .au-pane {
    display: none;
    animation: auFadeIn 0.3s ease forwards;
}

#au-modal .au-pane:not([hidden]) {
    display: block;
}

@keyframes auFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Überschriften */
#au-modal h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.3px;
}

#au-modal .text-center {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Pill-Buttons (Privat / Unternehmen) */
#au-modal .pill-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

#au-modal .pill-btn {
    flex: 1;
    padding: 0.85rem 0;
    border-radius: 60px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #334155;
    background: #1e2937;
    color: #cbd5e1;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
}

#au-modal .pill-btn i {
    margin-right: 8px;
}

#au-modal .pill-btn.primary {
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-color: transparent;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

#au-modal .pill-btn:hover:not(.primary) {
    background: #334155;
    border-color: #00d4ff;
    color: #ffffff;
}

#au-modal .pill-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* Eingabefelder */
#au-modal input,
#au-modal button:not(.toggle-password):not(.au-close):not(.pill-btn) {
    width: 100%;
    margin: 0.6rem 0;
    padding: 0.9rem 1.2rem;
    border: 2px solid #334155;
    border-radius: 20px;
    background: #1e2937;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

#au-modal input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
    background: #0f172a;
}

#au-modal input::placeholder {
    color: #64748b;
    font-weight: 400;
}

/* Buttons (Primär, Aktion) */
#au-modal button.primary {
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.8rem;
    letter-spacing: 0.3px;
}

#au-modal button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 212, 255, 0.5);
}

/* Passwort-Toggle */
#au-modal .password-wrapper {
    position: relative;
}

#au-modal .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 0;
    font-size: 1.3rem;
    color: #94a3b8;
    transition: color 0.2s;
}

#au-modal .toggle-password:hover {
    color: #00d4ff;
}

/* Code-Eingabe (6 Felder) */
#au-modal .code-inputs {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.8rem 0;
}

#au-modal .code-input-field {
    width: 3.4rem;
    height: 4rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 18px;
    background: #0f172a;
    border: 2px solid #334155;
    color: #00d4ff;
}

#au-modal .code-input-field:focus {
    border-color: #00d4ff;
    background: #1e2937;
}

/* Links */
#au-modal .link {
    text-align: center;
    margin-top: 1.5rem;
}

#au-modal .link a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

#au-modal .link a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Gründer-Hinweis (speziell für Unternehmen) */
#au-modal .founder-hint {
    background: rgba(0, 212, 255, 0.08);
    border-left: 4px solid #00d4ff;
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    margin: 0.8rem 0 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

#au-modal .founder-hint strong {
    color: #00d4ff;
}

/* Turnstile-Container */
#au-modal .cf-turnstile {
    margin: 1.2rem 0;
    display: flex;
    justify-content: center;
}

/* Responsive Anpassungen */
@media (max-width: 560px) {
    #au-modal .au-dialog {
        padding: 1.5rem;
        width: 92%;
    }
    #au-modal h2 {
        font-size: 1.5rem;
    }
    #au-modal .code-input-field {
        width: 2.8rem;
        height: 3.2rem;
        font-size: 1.5rem;
    }
    #au-modal .pill-btn {
        font-size: 0.9rem;
        padding: 0.7rem 0;
    }
}