/**
 * Auth-spezifische Styles – Krematorium Portal
 * Zweispaltiges Layout: Bild links, Formular rechts
 * (Basiert auf alpha.de.rip-app.com/assets/css/auth.css)
 */

/* ========== AUTH LAYOUT ========== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #101012;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 660px;
    border-radius: 24px;
    overflow: hidden;
    background: #1c1c1f;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: authSlideUp 0.5s ease-out;
}

/* ========== BILD-PANEL (Links) ========== */

.auth-image-panel {
    flex: 1;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1518895949257-7621c3c786d7?w=900&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.auth-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.72) 100%
    );
    z-index: 1;
}

.auth-image-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-image-logo {
    margin-bottom: auto;
}

.auth-logo-full {
    height: 36px;
    width: auto;
    display: block;
}

.auth-image-text {
    margin-top: auto;
}

.auth-image-text h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.auth-image-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========== FORMULAR-PANEL (Rechts) ========== */

.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    background: #1c1c1f;
    max-width: 520px;
    overflow-y: auto;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.auth-form-header p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0;
}

/* ========== FORM ELEMENTS ========== */

.auth-form-group {
    margin-bottom: 1.1rem;
}

.auth-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.auth-form-input,
.auth-form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.auth-form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

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

.auth-form-input:focus,
.auth-form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

/* Zwei-Spalten-Zeile */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-row--small-large {
    grid-template-columns: 1fr 2fr;
}

/* Section-Trennlinie */
.auth-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Checkbox */
.auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.auth-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e8e6e3;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox-row label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    user-select: none;
}

/* ========== BUTTONS ========== */

.auth-btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    background: #e8e6e3;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    margin-top: 0.5rem;
}

.auth-btn-primary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 230, 227, 0.22);
}

.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== FOOTER LINKS ========== */

.auth-footer-link {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.auth-footer-link a {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer-link a:hover {
    color: #fff;
}

/* ========== LEGAL LINKS ========== */

.auth-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

.auth-legal-links a {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.28);
    transition: color 0.2s;
}

.auth-legal-links a:hover {
    color: rgba(255, 255, 255, 0.55);
}

.auth-legal-divider {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.13);
    user-select: none;
}

/* ========== SUCCESS PAGE ========== */

.auth-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #4ade80;
    margin: 0 auto 1.5rem;
}

/* ========== ANIMATIONS ========== */

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 992px) {
    .auth-wrapper {
        padding: 1rem;
    }
    .auth-container {
        max-width: 460px;
        min-height: auto;
        margin: 0 auto;
    }
    .auth-image-panel {
        display: none;
    }
    .auth-form-panel {
        max-width: 100%;
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 576px) {
    .auth-form-panel {
        padding: 2rem 1.5rem;
    }
    .auth-form-header h1 {
        font-size: 1.3rem;
    }
    .auth-form-input,
    .auth-form-select {
        font-size: 1rem; /* iOS-Zoom-Fix */
    }
    .auth-row {
        grid-template-columns: 1fr;
    }
    .auth-row--small-large {
        grid-template-columns: 1fr;
    }
}
