* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ============================================
   AUTH PAGES (LOGIN/REGISTER)
   ============================================ */

body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    padding: 50px;
    width: 100%;
    max-width: 460px;
}

.auth-container.register {
    max-width: 520px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    color: #1e40af;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

h2 {
    color: #1e40af;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Messages */
.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error::before {
    content: '⚠️';
    font-size: 18px;
}

.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
    color: #166534;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success::before {
    content: '✓';
    font-size: 20px;
    font-weight: bold;
}

/* Forms */
.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    color: #1e40af;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}

.hint {
    color: #64748b;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 400;
    display: block;
    line-height: 1.5;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="url"]:hover {
    border-color: #cbd5e1;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder {
    color: #94a3b8;
}

button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    letter-spacing: 0.3px;
}

button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

button:active {
    transform: translateY(0);
}

/* Auth Links */
.auth-link {
    text-align: center;
    margin-top: 32px;
    color: #64748b;
    font-size: 15px;
}

.auth-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.auth-link a:hover {
    color: #1d4ed8;
}

/* ============================================
   DASHBOARD
   ============================================ */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    font-weight: 800;
    color: #1e40af;
}

.navbar-brand span:first-child {
    font-size: 28px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #475569;
    font-weight: 600;
    font-size: 15px;
}

.settings-btn {
    background: rgb(26, 25, 25);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.settings-btn:hover {
    background: rgba(26, 25, 25, 0.664);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

.logout-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

/* Dashboard Container */
.dashboard-wrapper {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 60px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    margin-bottom: 32px;
}

.card h1 {
    text-align: left;
    margin-bottom: 12px;
    color: #1e40af;
    font-size: 38px;
}

.card h2 {
    text-align: left;
    margin-bottom: 12px;
}

.card .subtitle {
    text-align: left;
    margin-bottom: 40px;
    font-size: 17px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid #3b82f6;
    padding: 24px 28px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12);
}

.info-box h3 {
    color: #1e40af;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box ul {
    margin: 16px 0 0 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.info-box li {
    margin: 10px 0;
}

/* Examples */
.examples {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px 24px;
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
}

.examples h4 {
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 700;
}

.examples code {
    display: block;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 13px;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .navbar-user {
        flex-direction: column;
        gap: 12px;
    }

    /* Buttons nebeneinander auf Mobile */
    .navbar-user > a {
        display: inline-block;
        width: auto;
        min-width: 120px;
    }

    .navbar-user {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .navbar-user > span {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .dashboard-wrapper {
        padding-top: 220px;
    }

    .card {
        padding: 32px 24px;
    }

    .card h1 {
        font-size: 28px;
    }

    h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 20px;
    }

    .auth-container {
        padding: 36px 28px;
    }

    .logo-icon {
        font-size: 52px;
    }

    h1 {
        font-size: 26px;
    }

    .dashboard-wrapper {
        padding-top: 240px;
    }

    .card {
        padding: 28px 20px;
    }

    .card h1 {
        font-size: 24px;
    }
}