/**
 * Fabre Breton Management Tool - Auth-Styles
 * 
 * Diese Datei stellt Auth-spezifische CSS-Styles bereit.
 */

/* Auth-Container Grundstruktur */
.fbm-auth-container {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Logo-Positionierung */
.fbm-auth-logo {
    text-align: center;
    padding: 20px 0;
    margin: 0;
    width: 100%;
    background: inherit;
}

.fbm-logo-img {
    max-height: 80px;
    max-width: 250px;
    height: auto;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    display: block;
}

/* Weißer Container mit Formular */
.fbm-auth-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    /* width wird dynamisch über Backend-Option gesetzt */
    max-width: 100%;
    min-width: 350px;
    margin: 0 auto;
}

/* Formular-Header */
.fbm-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.fbm-auth-header h2 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 28px;
    font-weight: 600;
}

.fbm-auth-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

/* Formular-Gruppen */
.fbm-form-group {
    margin-bottom: 20px;
}

.fbm-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.fbm-form-group input[type="text"],
.fbm-form-group input[type="email"],
.fbm-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fbm-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Passwort-Input mit Toggle */
.fbm-password-input {
    position: relative;
}

.fbm-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

.fbm-password-toggle:hover {
    color: #667eea;
}

/* Checkbox */
.fbm-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.fbm-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Button */
.fbm-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fbm-btn-primary {
    background: #667eea;
    color: white;
}

.fbm-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.fbm-btn-secondary {
    background: #6b7280;
    color: white;
}

.fbm-btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Progress-Bar für Multi-Step */
.fbm-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.fbm-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.fbm-progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.fbm-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.fbm-step-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.fbm-progress-step.active .fbm-step-number {
    background: #667eea;
    color: white;
}

.fbm-progress-step.active .fbm-step-label {
    color: #667eea;
}

/* Schritt-Formulare */
.fbm-form-step {
    display: none;
}

.fbm-form-step.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 767px) {
    .fbm-auth-form {
        /* width und margin werden über Inline-CSS gesetzt */
        padding: 30px 20px;
    }
    
    .fbm-auth-logo {
        padding: 15px 0;
    }
    
    .fbm-logo-img {
        max-height: 60px;
        max-width: 200px;
    }
}
