/* LibriScol - Index Page Styles */

:root {
    --primary-libreria: #2563eb;
    --primary-libreria-dark: #1d4ed8;
    --primary-cliente: #059669;
    --primary-cliente-dark: #047857;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
}

.logo {
    margin-bottom: 3rem;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 400;
}

.buttons-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.btn:hover::before {
    opacity: 1;
}

.btn-libreria {
    background: linear-gradient(145deg, var(--primary-libreria) 0%, var(--primary-libreria-dark) 100%);
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.5);
}

.btn-libreria::before {
    background: linear-gradient(145deg, #3b82f6 0%, var(--primary-libreria) 100%);
}

.btn-cliente {
    background: linear-gradient(145deg, var(--primary-cliente) 0%, var(--primary-cliente-dark) 100%);
    box-shadow: 0 10px 40px -10px rgba(5, 150, 105, 0.5);
}

.btn-cliente::before {
    background: linear-gradient(145deg, #10b981 0%, var(--primary-cliente) 100%);
}

.btn .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.btn .label {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.btn .description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

/* Responsive */
@media (max-width: 640px) {
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
        max-width: 320px;
        padding: 2rem 1.5rem;
    }
    
    .btn .icon {
        font-size: 2.5rem;
    }
    
    .btn .label {
        font-size: 1.5rem;
    }
}

/* Animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    animation: fadeInUp 0.6s ease-out;
}

.btn-libreria {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.btn-cliente {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

