/* Auth-spezifische Styles */

body {
    background-image: url('/shared/images/bgpic.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.auth-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    position: relative;
}

/* QR-Card Specific Styles */
.qr-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border: 3px solid #667eea;
    position: relative;
}

.qr-card::before {
    content: '⭐ Empfohlen';
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Register Badge (gleicher Style wie Empfohlen-Badge) */
.register-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse-register 2s ease-in-out infinite;
}

.register-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    animation: none; /* Stop animation on hover */
}

@keyframes pulse-register {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    }
}

.qr-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.qr-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.qr-card h2 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 28px;
}

.card-subtitle {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.qr-card-body {
    text-align: center;
}

.qr-description {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-large {
    padding: 18px 32px;
    font-size: 18px;
    margin-bottom: 15px;
}

.qr-info {
    display: block;
    color: #999;
    font-size: 12px;
    line-height: 1.5;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: #667eea;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

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

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

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.checkbox-group {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    line-height: 1.5;
}

.button-group {
    margin-top: 30px;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

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

.divider {
    position: relative;
    text-align: center;
    margin: 40px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 20px;
    color: #999;
    font-size: 14px;
}

.free-mode-section {
    text-align: center;
}

.free-mode-text {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.free-mode-section small {
    display: block;
    margin-top: 10px;
    color: #999;
    font-size: 12px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    border-left: 4px solid #c33;
}

.success-message {
    background: #efe;
    color: #363;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    border-left: 4px solid #363;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #764ba2;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Form Rows (2-spaltig) */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Select Elements */
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
    cursor: pointer;
}

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

/* Tel Input */
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

/* Consent Box */
.consent-box {
    background: #f8f9ff;
    border: 2px solid #e0e8ff;
    border-radius: 12px;
    padding: 20px;
}

.consent-text {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.consent-text h4 {
    color: #667eea;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
}

.consent-text p {
    margin-bottom: 12px;
}

.consent-text ul {
    margin: 10px 0 10px 20px;
    padding-left: 0;
}

.consent-text li {
    margin-bottom: 6px;
}

/* Checkbox Group erweitert */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Auth Container erweitert für breiteres Formular */
.auth-container {
    max-width: 700px; /* Von 500px auf 700px erhöht */
    margin: 0 auto;
    padding: 20px;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .auth-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qr-card {
        order: -1; /* QR-Card zuerst auf mobile */
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .auth-container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-container h1 {
        font-size: 24px;
    }

    .consent-text {
        max-height: 200px;
        font-size: 12px;
    }
}
