/* Account Pages - Resuah Design Integration */

/* Container für Account-Seiten */
.account-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 20px 20px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hauptkarte für Account-Seiten */
.account-card {
    max-width: 800px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Kleinere Karte für einfache Seiten */
.account-card-small {
    max-width: 500px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Überschriften */
.account-card h1,
.account-card-small h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.account-card h2,
.account-card-small h2 {
    color: #334155;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.account-card h3,
.account-card-small h3 {
    color: #475569;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Formulare */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating .form-control {
    width: 100%;
    padding: 20px 16px 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: #1e293b;
    line-height: 1.25;
}

.form-floating .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-floating .form-control:disabled {
    background-color: rgba(248, 250, 252, 0.8);
    color: #64748b;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px 16px 8px 16px;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 2px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label,
.form-floating .form-control:not(:empty) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #3b82f6;
}

.form-floating .form-control:focus ~ label {
    opacity: 1;
    color: #3b82f6;
}

/* Alternative: Einfachere Labels ohne Floating-Effekt */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: #1e293b;
}

.form-group .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 116, 139, 0.3);
    color: white;
    text-decoration: none;
}

.btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    text-decoration: none;
}

.w-100 {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Alerts und Nachrichten */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #166534;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
}

/* Text-Stile */
.text-danger {
    color: #dc2626;
    font-size: 14px;
    margin-top: 5px;
}

.text-success {
    color: #166534;
}

.text-info {
    color: #1d4ed8;
}

.text-secondary {
    color: #64748b;
}

/* Links */
a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Checkboxes */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.form-check-input:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.form-check-label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Grid Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col-lg-6 {
    flex: 0 0 50%;
    padding: 15px;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    padding: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .account-container {
        padding: 100px 15px 20px;
    }
    
    .account-card,
    .account-card-small {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .account-card h1,
    .account-card-small h1 {
        font-size: 2rem;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-6,
    .col-lg-4 {
        flex: 0 0 100%;
        padding: 10px 0;
    }
}

/* Manage Pages Layout */
.manage-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 20px 20px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.manage-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.manage-header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.manage-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.manage-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.manage-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.manage-nav-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.manage-body-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 500px;
}

/* Navigation Menu */
.manage-nav-header h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.manage-nav-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-section h4 {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    text-decoration: none;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-item.active:hover {
    transform: translateX(0);
    color: white;
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .manage-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .manage-sidebar {
        position: static;
    }
    
    .manage-nav-card {
        padding: 20px;
    }
    
    .manage-nav-sections {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .nav-section {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .manage-container {
        padding: 100px 15px 20px;
    }
    
    .manage-header {
        padding: 30px 20px;
    }
    
    .manage-header h1 {
        font-size: 2rem;
    }
    
    .manage-body-card {
        padding: 25px 20px;
    }
    
    .manage-nav-sections {
        flex-direction: column;
    }
}

/* Passkey-spezifische Stile */
.passkey-section {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Validation Summary */
.validation-summary-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
    color: #dc2626;
}

/* HR Styling */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 30px 0;
}

/* Status Messages */
.status-message {
    text-align: center;
    margin-bottom: 20px;
}
