/* ============================================
   Login-App – einfaches, sauberes Styling
   ============================================ */

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
}

.card.wide {
    max-width: 600px;
}

h1 {
    margin: 0 0 1.5rem;
    color: #333;
    font-size: 1.6rem;
}

label {
    display: block;
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-top: 0.35rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.15s;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

button {
    width: 100%;
    padding: 0.8rem;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.5rem;
}

button:hover { background: #5568d3; }

.btn-secondary {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-secondary:hover { background: #e0e0e0; }

.meta {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.meta a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.meta a:hover { text-decoration: underline; }

.alert {
    padding: 0.9rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.alert.error {
    background: #fdecea;
    color: #a32f2a;
    border: 1px solid #f5c2c0;
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.topbar h1 { margin: 0; }

.info {
    background: #f7f8fc;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.info p { margin: 0.4rem 0; color: #444; }

/* App-Kacheln auf Dashboard */
.apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 1.5rem 0;
}

.app-tile {
    display: block;
    padding: 1.4rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(102,126,234,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.app-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}

.app-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.app-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.app-desc {
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.4;
}
