body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-container {
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

header {
    color: white;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease;
}

header h1 {
    font-size: 3rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
}

.portal-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.portal-card:nth-child(1) {
    animation-delay: 0.1s;
}

.portal-card:nth-child(2) {
    animation-delay: 0.2s;
}

.portal-card:nth-child(3) {
    animation-delay: 0.3s;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.portal-card h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.portal-card p {
    color: #666;
    font-size: 1rem;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
}

.error-message {
    background: rgba(255, 255, 255, 0.95);
    color: #d32f2f;
    padding: 15px 25px;
    border-radius: 10px;
    margin: 0 auto 30px auto;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
    animation: shake 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .portal-selection {
        grid-template-columns: 1fr;
    }
}
