/* 
 * Gemeinsame CSS-Styles für alle Account-Seiten
 * Enthält geteilte Styles für Login, Register, ForgotPassword, ResetPassword etc.
 */

/* === BASIS LAYOUT === */
.account-page-background {
    min-height: calc(100vh - var(--mud-appbar-height) - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin: -1rem;
}

.account-page-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
}

/* Spezifische Kartenvarianten */
.account-page-card--large {
    max-width: 1000px;
}

.account-page-card--medium {
    max-width: 900px;
}

.account-page-card--small {
    max-width: 500px;
    padding: 2rem;
}

/* === GRID LAYOUTS === */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.account-grid--single {
    grid-template-columns: 1fr;
}

/* === BRANDING SECTION === */
.account-brand-section {
    background: var(--mud-palette-primary);
    color: white;
    text-align: center;
    padding: 1.5rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account-brand-section--large {
    min-height: 400px;
}

/* === FORM SECTION === */
.account-form-section {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
}

.account-form-section--large {
    min-height: 400px;
}

/* === TYPOGRAPHY === */
.account-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-title--centered {
    color: var(--mud-palette-primary);
    text-align: center;
    text-shadow: none;
}

.account-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.account-subtitle--secondary {
    color: var(--mud-palette-text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 1;
}

/* === LOGO === */
.account-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.account-logo-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: none;
    padding: 0;
    border: none;
}

.account-logo-image--primary {
    background: var(--mud-palette-primary);
}

/* === FEATURE LIST === */
.account-feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.account-feature-list li {
    padding: 0.25rem 0;
    opacity: 0.8;
}

.account-feature-list li::before {
    content: '✓';
    margin-right: 0.5rem;
    font-weight: bold;
}

/* === FORM ELEMENTS === */
.account-form-field {
    margin-bottom: 1rem;
}

.account-form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.account-form-control:focus {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 3px var(--mud-palette-primary-hover);
    outline: none;
}

.account-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.account-form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
}

.account-form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--mud-palette-primary);
    cursor: pointer;
}

.account-form-checkbox:hover {
    filter: brightness(1.1);
}

.account-form-checkbox:focus {
    outline: 2px solid var(--mud-palette-primary-hover);
    outline-offset: 2px;
}

/* === BUTTONS === */
.account-button {
    background: var(--mud-palette-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.account-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--mud-palette-primary-hover);
    background: var(--mud-palette-primary-darken);
}

/* === LINKS === */
.account-link {
    color: var(--mud-palette-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.account-link:hover {
    color: var(--mud-palette-primary-darken);
    text-decoration: underline;
}

/* === UTILITY CLASSES === */
.account-text-center {
    text-align: center;
}

.account-flex-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-divider-line {
    background: rgba(255,255,255,0.3);
    height: 1px;
    margin: 1rem 0;
}

/* Utility classes for links */
.account-links-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.account-link-small {
    font-size: 0.875rem;
}

/* === DIVIDERS === */
.account-divider {
    margin: 1rem 0;
    text-align: center;
    position: relative;
}

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

.account-divider span {
    background: white !important;
    padding: 0.5rem 1.5rem !important;
    color: #666 !important;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 0 0 2px white;
}

/* === ERROR MESSAGES === */
.account-error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #c62828;
    margin-bottom: 1rem;
}

.account-success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2e7d32;
    margin-bottom: 1rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .account-page-background {
        padding: 0.5rem;
        margin: -1rem -1rem 0 -1rem;
        min-height: calc(100vh - var(--mud-appbar-height) - 1.5rem);
    }

    .account-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: auto;
    }

    .account-brand-section {
        min-height: auto;
        padding: 1rem 1rem 0.5rem 1rem;
        order: 1;
    }

    .account-form-section {
        min-height: auto;
        padding: 0.5rem 1rem 1rem 1rem;
        order: 2;
    }

    .account-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .account-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .account-feature-list {
        display: none; /* Feature-Liste auf mobilen Geräten ausblenden */
    }

    .account-page-card {
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .account-page-card--small {
        padding: 1rem;
    }    .account-logo-image {
        width: 100px;
        height: 100px;
        padding: 0;
        border: none;
        background: none;
    }

    .account-logo-container {
        margin-bottom: 0.5rem;
    }

    /* Kompakteres Form-Layout auf mobilen Geräten */
    .account-form-field {
        margin-bottom: 0.75rem;
    }

    .account-form-section > div:first-child {
        margin-bottom: 1rem; /* Reduzierter Abstand für Header */
    }
}
