* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-image: url('images/sfondo.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-container {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1200px;
    backdrop-filter: blur(5px);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 300px;
    height: auto;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dashboard-btn {
    padding: 1.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    background-image: linear-gradient(rgba(222, 184, 135, 0.6), rgba(222, 184, 135, 0.6)), url('images/4k-black-3840-x-2160-background-m8k0dox5n1m3gcbt.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.dashboard-btn:hover {
    background-image: linear-gradient(rgba(210, 180, 140, 0.7), rgba(210, 180, 140, 0.7)), url('images/4k-black-3840-x-2160-background-m8k0dox5n1m3gcbt.jpg');
    background-size: cover;
    background-position: center;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        max-width: 200px;
    }
}

/* Stili per i modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.modal-content h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: normal;
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: none;
    border-radius: 5px;
    background-color: rgba(133, 117, 91, 0.9);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.modal-btn:hover {
    background-color: rgba(133, 117, 91, 1);
}

.modal-btn.cancel {
    background-color: #333333;
    color: white;
}

.modal-btn.cancel:hover {
    background-color: #444444;
}

/* Responsive */
@media (max-width: 700px) {
    .modal-content {
        width: 90%;
        margin: 20px;
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .modal-btn {
        padding: 12px;
        font-size: 16px;
    }
}

/* Stili specifici per la pagina di login */
.login-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    margin: 2rem auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #bfa77a;
    box-shadow: 0 0 10px rgba(191, 167, 122, 0.3);
}

.login-btn {
    padding: 1rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #bfa77a, #e0cfa0);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 167, 122, 0.4);
    background: linear-gradient(to right, #e0cfa0, #bfa77a);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background-color: #dc3545;
    color: white;
    text-align: center;
    font-weight: 500;
}

/* Logo nella pagina di login */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-group input {
        padding: 0.8rem 1.2rem;
    }
    
    .logo-container img {
        max-width: 150px;
    }
} 