/* * HARZGLÜCK AUTH STYLE 3.3
 * Fix: Padding, Theme-Conflicts & Layout
 */

/* --- SWITCH AREA (Unten im Login) --- */
.mmd-switch-area {
    margin-top: 30px;
    text-align: center;
}

.mmd-switch-text {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin-bottom: 20px !important;
}

.mmd-trigger-switch {
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    color: #D4AF37;
    /* Gold Link */
    transition: color 0.3s;
}

.mmd-trigger-switch:hover {
    text-decoration: underline;
    color: #1A1A1A;
}

/* Separator für Dienstleister */
.mmd-vendor-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 25px 0 20px 0;
}

.mmd-vendor-separator::before,
.mmd-vendor-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.mmd-vendor-separator span {
    padding: 0 15px;
}

/* Dienstleister Button */
.mmd-vendor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #f8fafc;
    width: 100%;
    /* Volle Breite sieht oft besser aus */
}

.mmd-vendor-btn:hover {
    border-color: #D4AF37;
    color: #1A1A1A;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- FORM FOOTER --- */
.mmd-switch-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 25px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* --- ANIMATIONEN --- */
.mmd-auth-pane {
    display: none;
}

.mmd-auth-pane.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LAYOUT BASICS --- */
.mmd-auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    /* Breite etwas erhöht */
    margin: 0 auto;
    box-sizing: border-box;
    background: #fff;
    /* Fallback */
    /* WICHTIG: Standard Padding wiederhergestellt */
    padding: 40px !important;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .mmd-auth-wrapper {
        padding: 25px !important;
    }
}

.mmd-auth-wrapper * {
    box-sizing: border-box;
}

.mmd-auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Tabs */
.mmd-auth-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 20px;
}

.mmd-auth-tab {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 5px !important;
    font-size: 1.5rem !important;
    font-family: 'Cormorant Garamond', serif;
    border-bottom: 2px solid transparent !important;
    transition: 0.3s;
    line-height: 1.2 !important;
    color: #94a3b8;
}

.mmd-auth-tab.active {
    color: #1A1A1A;
    border-bottom-color: #D4AF37 !important;
}

.mmd-divider {
    font-size: 1.5rem;
    color: #e2e8f0;
    font-weight: 300;
}

.mmd-static-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 !important;
    color: #1A1A1A;
}

/* --- INPUTS (Theme Proof) --- */
.mmd-input-group {
    position: relative;
    margin-bottom: 2rem !important;
    width: 100%;
}

.mmd-input-group input {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    padding: 20px 0 10px 0 !important;
    outline: none !important;
    transition: 0.3s;
    background: transparent !important;
    font-size: 1rem !important;
    color: #1A1A1A !important;
    height: auto !important;
    box-shadow: none !important;
}

.mmd-input-group input:focus {
    border-bottom-color: #D4AF37 !important;
}

/* Label Styling */
.mmd-input-group label {
    position: absolute;
    left: 0;
    top: 20px;
    color: #94a3b8;
    pointer-events: none;
    transition: 0.3s;
    font-size: 1rem;
    margin: 0 !important;
    line-height: 1 !important;
    z-index: 10;
    /* Fix: Ensure label is above input background/shadow */
}

/* Floating Effekt */
.mmd-input-group input:focus~label,
.mmd-input-group input:not(:placeholder-shown)~label,
.mmd-input-group input:-webkit-autofill~label {
    /* Fix: Autofill Trigger */
    transform: translateY(-24px) scale(0.85);
    font-weight: 600;
    text-transform: uppercase;
    color: #D4AF37;
    transform-origin: left top;
}

/* Autofill Fix (Gelb entfernen) - Label Color Fix */
.mmd-input-group input:-webkit-autofill,
.mmd-input-group input:-webkit-autofill:hover,
.mmd-input-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1A1A1A !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Messages */
.mmd-auth-msg {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.mmd-success {
    color: #10b981;
    background: #ecfdf5;
    padding: 10px;
    border-radius: 4px;
}

.mmd-error {
    color: #ef4444;
    background: #fef2f2;
    padding: 10px;
    border-radius: 4px;
}

/* Role Cards */
.mmd-role-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mmd-role-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
    border-radius: 4px;
}

.mmd-role-card:hover {
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.mmd-role-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #D4AF37;
}

.mmd-role-info h5 {
    margin: 0 0 4px 0 !important;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    color: #1A1A1A;
}

.mmd-role-info span {
    font-size: 0.85rem;
    display: block;
    color: #64748b;
}

.mmd-arrow {
    margin-left: auto;
    color: #e2e8f0;
    transition: 0.3s;
}

.mmd-role-card:hover .mmd-arrow {
    transform: translateX(5px);
    color: #D4AF37;
}

/* Buttons */
.mmd-auth-btn {
    width: 100%;
    background: #1A1A1A !important;
    color: #fff !important;
    border: none !important;
    padding: 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px !important;
    margin-top: 10px;
}

.mmd-auth-btn:hover {
    background: #D4AF37 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.mmd-back-btn {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
}

.mmd-back-btn:hover {
    color: #1A1A1A !important;
}

/* Show Pass Icon */
.mmd-show-pass {
    position: absolute;
    right: 0;
    bottom: 12px;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    z-index: 5;
    transition: all 0.3s ease;
    /* Smooth transition added */
}

.mmd-show-pass:hover {
    color: #D4AF37;
}

/* Footer Links */
.mmd-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    color: #64748b;
    margin-top: -10px;
}

.mmd-forgot-link {
    color: #64748b;
    text-decoration: underline;
    transition: 0.2s;
    cursor: pointer;
}

.mmd-forgot-link:hover {
    color: #D4AF37;
}

.mmd-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mmd-checkbox input {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: #D4AF37;
}