/**
 * Foglio di stile per la pagina di Login
 * Portale Marco Carone
 * 
 * @author Marco Carone
 * @version 3.0
 * @data 2026
 */

/* Reset e impostazioni base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container del login */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 450px;
    width: 100%;
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo animato */
.logo {
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    display: inline-block;
}

.logo img {
    width: 80px;
    height: 80px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Titoli e testi */
h1 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Input password */
.password-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.password-input:disabled,
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Bottone login */
.login-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Messaggio di errore */
.error-message {
    background: #ff6b6b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: shake 0.5s ease;
    font-weight: 500;
}

.error-message--lockout {
    background: #c05621;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Nota di sicurezza */
.security-note {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.security-note span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.security-note a {
    color: #667eea;
}

/* Responsive per dispositivi mobili */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 25px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
}
