/* ============================================
   AUTH PAGE - DARK PREMIUM THEME
   Login & Registration - Glassmorphism Style
   Matching duties.css Design System
   Body-Klasse: bgp (in mc.css definiert)
   ============================================ */

/* === BASE PAGE STYLES === */
.auth-page {
    min-height: 100vh;
    padding-bottom: 60px;
}

/* === HERO SECTION === */
.auth-hero {
    position: relative;
    padding: 160px 0 0 0;
    overflow: hidden;
    text-align: center;
}

.auth-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 40, 126, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(90, 197, 96, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 80% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.auth-hero-content {
    position: relative;
    z-index: 1;
}

.auth-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(90, 197, 96, 0.2) 0%, rgba(90, 197, 96, 0.05) 100%);
    border: 1px solid rgba(90, 197, 96, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #5ac560;
    margin: 0 auto 24px;
}

.auth-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.auth-hero-divider {
    max-width: 200px;
    margin: 20px auto;
    opacity: 0.8;
}

.auth-hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === TAB NAVIGATION === */
.auth-tabs-wrapper {
    max-width: 500px;
    margin: 40px auto 0;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 6px;
    gap: 6px;
}

.auth-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-tab i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.auth-tab.active {
    background: linear-gradient(135deg, rgba(90, 197, 96, 0.2) 0%, rgba(90, 197, 96, 0.08) 100%);
    color: #5ac560;
    border: 1px solid rgba(90, 197, 96, 0.3);
}

.auth-tab.active i {
    transform: scale(1.1);
}

/* === CONTENT AREA === */
.auth-content {
    padding: 0 0 0 0;
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(26, 21, 71, 0.95) 0%, rgba(13, 11, 36, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.auth-card-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* === FORM STYLES === */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form-group {
    position: relative;
}

.auth-form-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.auth-form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-form-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-form-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #5ac560;
    box-shadow: 0 0 0 3px rgba(90, 197, 96, 0.15);
    outline: none;
}

.auth-form-input.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

/* Checkbox Styling */
.auth-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.auth-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.auth-checkbox-mark {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.auth-checkbox input:checked + .auth-checkbox-mark {
    background: #5ac560;
    border-color: #5ac560;
}

.auth-checkbox input:checked + .auth-checkbox-mark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.7rem;
}

.auth-checkbox input:focus + .auth-checkbox-mark {
    box-shadow: 0 0 0 3px rgba(90, 197, 96, 0.2);
}

.auth-checkbox-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-checkbox-label a {
    color: #5ac560;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.auth-checkbox-label a:hover {
    color: #7dd882;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(90, 197, 96, 0.25) 0%, rgba(90, 197, 96, 0.15) 100%);
    color: #5ac560;
    border: 1px solid rgba(90, 197, 96, 0.35);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, rgba(90, 197, 96, 0.35) 0%, rgba(90, 197, 96, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 197, 96, 0.25);
}

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

.auth-submit-btn.oc-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* === ALERTS & MESSAGES === */
.auth-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-alert-danger {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: #e74c3c;
}

.auth-alert-success {
    background: rgba(90, 197, 96, 0.15);
    border: 1px solid rgba(90, 197, 96, 0.3);
    color: #5ac560;
}

.auth-alert-warning {
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #f39c12;
}

/* === FOOTER LINKS === */
.auth-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.auth-footer-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-footer-link:hover {
    color: #5ac560;
    text-decoration: none;
}

.auth-footer-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 16px;
}

.auth-footer-text a {
    color: rgba(255, 255, 255, 0.6);
}

/* === HELPER TEXT === */
.auth-helper-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 8px;
}

.auth-required-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-required-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin: 0;
}

.auth-support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.auth-support-link:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.auth-support-link i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.auth-support-link:hover i {
    opacity: 1;
}

/* === TAB CONTENT === */
.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

/* === REGISTRATION DISABLED STATE === */
.auth-disabled-notice {
    text-align: center;
    padding: 40px 20px;
}

.auth-disabled-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.auth-disabled-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.auth-disabled-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === FLASH MESSAGES (WinterCMS) === */
.auth-card .flash-message {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.auth-card .flash-message.success {
    background: rgba(90, 197, 96, 0.15);
    border: 1px solid rgba(90, 197, 96, 0.3);
    color: #5ac560;
}

.auth-card .flash-message.error {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: #e74c3c;
}

.auth-card .flash-message.warning {
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #f39c12;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .auth-hero {
        padding: 120px 0 30px;
    }

    .auth-hero h1 {
        font-size: 1.8rem;
    }

    .auth-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .auth-card {
        margin: 0 16px;
        padding: 28px 24px;
        border-radius: 20px;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-tabs {
        border-radius: 14px;
    }

    .auth-tab {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .auth-tab i {
        font-size: 1.1rem;
    }

    .auth-tabs-wrapper {
        margin: 30px 16px 0;
        max-width: none;
    }
}

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

    .auth-card-title {
        font-size: 1.3rem;
    }

    .auth-submit-btn {
        padding: 14px 20px;
    }
}
