/* ==========================================
   orjicloud Health – Landing Page Styles
   (angepasst an das Blazor-App-Design)
   ========================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent: #ef4444;
    --accent-dark: #b91c1c;
    --accent-bg: rgba(239, 68, 68, 0.08);
    --accent-glass: rgba(239, 68, 68, 0.12);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    --border: rgba(203, 213, 225, 0.5);
    --border-focus: #3b82f6;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --success: #10b981;
    --success-bg: #f0fdf4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================
   Glassmorphism Basis
   ========================================== */

.page-glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.page-glass--wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==========================================
   App Container
   ========================================== */

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(160deg, #f8faff 0%, #fef2f2 40%, #fff5f5 100%);
}

/* ==========================================
   Header
   ========================================== */

.app-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(203, 213, 225, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
    height: 100%;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================
   Main Content
   ========================================== */

.app-main {
    flex: 1;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-content .highlight {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    min-width: 0;
}

/* ==========================================
   Feature Cards (Glassmorphism)
   ========================================== */

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    transition: box-shadow 0.3s, transform 0.25s, background 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-glass);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.feature-icon svg {
    stroke: #ef4444;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================
   Registration Section
   ========================================== */

.registration-section {
    padding: 4rem 2rem 5rem;
    position: relative;
}

.registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.2), transparent);
}

.registration-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.registration-info {
    flex: 1;
    position: sticky;
    top: 6rem;
}

.registration-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.registration-info > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.benefits-list svg {
    flex-shrink: 0;
    fill: #ef4444;
}

/* ==========================================
   Registration Form (Glassmorphism)
   ========================================== */

.registration-form-container {
    flex: 1;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.registration-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    padding: 0.625rem 0.875rem;
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.form-checkbox input[type="hidden"] {
    display: none;
}

/* ==========================================
   Toggle Switch (wie in der Blazor-App)
   ========================================== */

.toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    background: #cbd5e1;
    border-radius: 11px;
    transition: background 0.25s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toggle-input:checked + .toggle-slider::after {
    transform: translateX(18px);
}

.toggle-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toggle-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-accent {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

.btn-accent:active {
    transform: scale(0.98);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}

/* ==========================================
   Alerts
   ========================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert-success svg {
    color: var(--success);
}

.alert-error {
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.alert-error svg {
    color: var(--error);
}

.registration-success-actions {
    margin-top: 1.5rem;
}

/* ==========================================
   Login Hint
   ========================================== */

.login-hint {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.login-hint a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.login-hint a:hover {
    text-decoration: underline;
}

/* ==========================================
   Footer
   ========================================== */

.app-footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-top: 1px solid rgba(203, 213, 225, 0.4);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-legal {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--accent);
    font-weight: 500;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 3rem 1.5rem 2rem;
        gap: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .registration-container {
        flex-direction: column;
        gap: 2rem;
    }

    .registration-form-container {
        max-width: 100%;
    }

    .registration-info {
        position: static;
    }

    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }

    .header-content {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.65rem;
    }

    .hero {
        padding: 2rem 1rem 1.5rem;
    }

    .registration-section {
        padding: 2.5rem 1rem;
    }

    .registration-form-container {
        padding: 1.5rem;
    }
}