/**
 * Login & Registration V2 - Modern Design
 * Passend zum IT Expert Hub Theme
 * @package IT_Expert_Login_Reg_V2
 * @version 2.0.0
 */

/* ===== CSS Variables (vom Theme übernehmen) ===== */
.auth-page-wrapper {
    --auth-primary: #0066cc;
    --auth-primary-hover: #0052a3;
    --auth-primary-light: #e6f2ff;
    --auth-text: #333333;
    --auth-heading: #1a1a1a;
    --auth-bg: #ffffff;
    --auth-light-bg: #f8f9fa;
    --auth-border: #e0e0e0;
    --auth-success: #10b981;
    --auth-error: #ef4444;
    --auth-warning: #f59e0b;
    --auth-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --auth-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --auth-shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --auth-radius: 8px;
    --auth-radius-sm: 6px;
    --auth-transition: all 0.3s ease;
}

/* ===== Container & Layout ===== */
.auth-page-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-page-content {
    width: 100%;
}

/* ===== Page Header ===== */
.auth-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--auth-heading);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.auth-page-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* ===== Form Wrapper (Card Design) ===== */
.auth-form-wrapper {
    background: var(--auth-bg);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow-md);
    padding: 48px;
    margin: 0 auto 40px;
    max-width: 1200px;
}

.auth-login-card,
.auth-password-reset-card {
    background: var(--auth-bg);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow-md);
    padding: 48px;
    margin: 0 auto;
    max-width: 600px;
}

/* ===== Widgets Sektion ===== */
.auth-widgets-section {
    margin: 40px 0;
}

.auth-widgets-top {
    margin-bottom: 50px;
}

.auth-widgets-bottom {
    margin-top: 50px;
}

.auth-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Widget Card Design */
.auth-widget-card {
    background: var(--auth-bg);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--auth-transition);
    box-shadow: var(--auth-shadow-sm);
}

.auth-widget-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--auth-shadow-lg);
    border-color: var(--auth-primary);
}

.auth-widget-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-light-bg);
    border-radius: 12px;
    color: var(--auth-primary);
}

.auth-widget-icon .dashicons {
    width: 36px;
    height: 36px;
    font-size: 36px;
}

.auth-widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--auth-heading);
    margin: 0 0 12px 0;
}

.auth-widget-text {
    font-size: 0.9375rem;
    color: var(--auth-text);
    line-height: 1.6;
    margin: 0;
}

.auth-widget-text p {
    margin: 0 0 8px 0;
}

.auth-widget-text p:last-child {
    margin-bottom: 0;
}

/* ===== Registration Hub Cards ===== */
.auth-hub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.auth-hub-card {
    background: var(--auth-bg);
    border: 2px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--auth-transition);
    display: flex;
    flex-direction: column;
    max-height: 300px;
    box-shadow: var(--auth-shadow-sm);
}

.auth-hub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--auth-shadow-lg);
    border-color: var(--auth-primary);
}

.auth-hub-card-icon {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
    color: var(--auth-primary);
}

.auth-hub-card-icon svg {
    width: 100%;
    height: 100%;
}

.auth-hub-card-body {
    flex: 1;
    margin-bottom: 20px;
}

.auth-hub-card-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--auth-heading);
    margin: 0 0 12px 0;
}

.auth-hub-card-body p {
    font-size: 0.9375rem;
    color: var(--auth-text);
    line-height: 1.6;
    margin: 0;
}

.auth-hub-card-footer {
    margin-top: auto;
}

/* ===== Buttons ===== */
.auth-button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--auth-primary);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--auth-radius);
    transition: var(--auth-transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.auth-button:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--auth-shadow-md);
}

.auth-button-secondary {
    background: var(--auth-light-bg);
    color: var(--auth-text) !important;
}

.auth-button-secondary:hover {
    background: var(--auth-border);
}

/* ===== Form Elements ===== */
.auth-form-group {
    margin-bottom: 24px;
}

/* ===== Form Sections ===== */
.auth-form-section {
    background: var(--auth-light-bg);
    border-radius: var(--auth-radius);
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid var(--auth-border);
}

.auth-form-section:last-child {
    margin-bottom: 0;
}

.auth-section-title,
.auth-form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--auth-heading);
    margin: 0 0 20px 0;
}

.auth-section-title svg,
.auth-form-section-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--auth-primary);
    flex-shrink: 0;
}

.auth-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-heading);
    margin-bottom: 8px;
}

.auth-form-label.required::after {
    content: ' *';
    color: var(--auth-error);
}

.auth-form-grid {
    display: grid;
    gap: 20px;
}

.auth-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.auth-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.auth-form-input,
.auth-form-select,
.auth-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-bg);
    color: var(--auth-text);
    transition: var(--auth-transition);
}

.auth-form-input:focus,
.auth-form-select:focus,
.auth-form-textarea:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-light);
}

.auth-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.auth-form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
}

.auth-form-help {
    display: block;
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 6px;
}

.auth-form-input:focus,
.auth-form-select:focus,
.auth-form-textarea:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-light);
}

.auth-form-input.error {
    border-color: var(--auth-error);
}

.auth-form-error {
    display: block;
    color: var(--auth-error);
    font-size: 0.875rem;
    margin-top: 6px;
}

/* ===== Checkbox & Radio ===== */
.auth-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.auth-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.auth-form-checkbox label {
    font-size: 0.9375rem;
    color: var(--auth-text);
    cursor: pointer;
    line-height: 1.5;
}

.auth-form-checkbox label a {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-form-checkbox label a:hover {
    text-decoration: underline;
}

/* ===== Buttons ===== */
.auth-form-submit,
.auth-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--auth-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    transition: var(--auth-transition);
    text-align: center;
    display: inline-block;
}

.auth-form-submit:hover,
.auth-btn-primary:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--auth-shadow-md);
}

.auth-form-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* ===== Password Strength Meter ===== */
.password-strength-meter {
    margin-top: 8px;
    height: 4px;
    background: var(--auth-border);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-meter .strength-bar,
.password-strength-bar {
    height: 100%;
    transition: var(--auth-transition);
    border-radius: 2px;
}

.password-strength-meter .strength-bar.weak,
.password-strength-bar.weak {
    width: 33%;
    background: var(--auth-error);
}

.password-strength-meter .strength-bar.medium,
.password-strength-bar.medium {
    width: 66%;
    background: var(--auth-warning);
}

.password-strength-meter .strength-bar.strong,
.password-strength-bar.strong {
    width: 100%;
    background: var(--auth-success);
}

.password-strength-text {
    font-size: 0.8125rem;
    margin-top: 4px;
    font-weight: 500;
}

.password-strength-text.weak { color: var(--auth-error); }
.password-strength-text.medium { color: var(--auth-warning); }
.password-strength-text.strong { color: var(--auth-success); }

/* ===== Links ===== */
.auth-form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 0.9375rem;
}

.auth-form-links a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-form-links a:hover {
    text-decoration: underline;
}

.auth-text-center {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--auth-text);
}

.auth-text-center a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-text-center a:hover {
    text-decoration: underline;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--auth-transition);
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* ===== Alerts & Messages ===== */
.auth-alert {
    padding: 14px 18px;
    border-radius: var(--auth-radius-sm);
    margin-bottom: 24px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.auth-alert-warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

.auth-alert-info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.auth-alert ul {
    margin: 0;
    padding-left: 20px;
}

/* ===== Animations ===== */
.auth-fade-in {
    animation: authFadeIn 0.5s ease-out;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Bild-Upload Komponente ===== */
.auth-image-upload-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 8px;
}

.auth-image-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--auth-radius);
    border: 2px dashed var(--auth-border);
    background: var(--auth-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.auth-image-preview svg {
    width: 48px;
    height: 48px;
    color: #94a3b8;
}

.auth-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image-preview.has-image {
    border-style: solid;
    border-color: var(--auth-primary);
}

.auth-image-upload-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-file-input {
    display: none;
}

.auth-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--auth-primary);
    color: white;
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--auth-transition);
    border: none;
    width: fit-content;
}

.auth-file-label:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
}

.auth-file-label svg {
    width: 20px;
    height: 20px;
}

.auth-file-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--auth-error);
    border: 1px solid var(--auth-error);
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--auth-transition);
    width: fit-content;
}

.auth-file-remove:hover {
    background: var(--auth-error);
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .auth-hub-cards,
    .auth-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .auth-form-grid-2,
    .auth-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-page-title {
        font-size: 1.75rem;
    }
    
    .auth-page-subtitle {
        font-size: 1rem;
    }
    
    .auth-form-wrapper,
    .auth-login-card,
    .auth-password-reset-card {
        padding: 32px 24px;
    }
    
    .auth-form-section {
        padding: 20px;
    }
    
    .auth-hub-cards,
    .auth-widgets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .auth-hub-card {
        max-height: none;
    }
    
    .auth-container {
        padding: 0 16px;
    }
    
    .auth-image-upload-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 20px 0;
    }
    
    .auth-page-title {
        font-size: 1.5rem;
    }
    
    .auth-form-wrapper,
    .auth-login-card,
    .auth-password-reset-card {
        padding: 24px 20px;
    }
    
    .auth-form-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .auth-button,
    .auth-form-submit {
        padding: 10px 20px;
        font-size: 0.9375rem;
    }
    
    .auth-image-preview {
        width: 100px;
        height: 100px;
    }
    
    .auth-image-preview svg {
        width: 40px;
        height: 40px;

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}
