﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Top Bar */
.top-bar {
    background-color: #003366;
    color: white;
    padding: 8px 0;
    font-size: 12px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #0066cc;
    color: white;
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    /*background: linear-gradient(135deg, #00aa44 0%, #0066cc 50%, #cc0066 100%);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene le proporzioni dell'immagine */
    display: block;
}

.ministry-name {
    font-size: 24px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    background-color: white;
    min-height: 500px;
    padding: 60px 20px;
}

.login-container {
    display: flex;
    justify-content: center; /* centra orizzontalmente */
}

.l-title {
    color: #0066cc;
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
}

.l-subtitle {
    color: #5c5c5c;
    text-align: center;
    font-size: 14px;
    margin-bottom: 40px;
}



/* Login Content */
.login-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.login-info {
    flex: 1;
    color: #5c5c5c;
    font-size: 14px;
    line-height: 1.6;
}

    .login-info p {
        margin-bottom: 15px;
    }

.form-label {
    color: #0066cc;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.login-links {
    margin-top: 30px;
}

    .login-links a {
        display: block;
        color: #0066cc;
        text-decoration: none;
        margin-bottom: 10px;
        font-size: 14px;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

.login-button {
    flex-shrink: 0;
}

.btn-spid {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
    min-width: 280px;
    justify-content: center;
}

    .btn-spid:hover {
        background-color: #0052a3;
    }

    .btn-spid svg {
        width: 24px;
        height: 24px;
    }

/* Footer */
.footer {
    background-color: #0052a3;
    color: white;
    padding: 40px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #b3d4ff;
    font-size: 13px;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

    .footer-section a:hover {
        text-decoration: underline;
    }

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1a6bb8;
    font-size: 12px;
    color: #b3d4ff;
}

/* Responsive */
@media (max-width: 768px) {
    .login-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    .page-title {
        font-size: 24px;
    }

    .btn-spid {
        width: 100%;
    }
}






/* Centra il contenuto di login */
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Card del form */
.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-content {
    width: 100%;
    max-width: 700px;
    text-align: center; /* centra il testo */
}

.message-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    /*gap: 20px;*/
}

/* Contenitore principale */
.message-content {
    text-align: center; /* Centra il testo, tipico per pagine di errore */
    font-family: Arial, sans-serif; /* Font di base */
    color: #333;
}

/* Titolo della pagina */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    text-transform: uppercase;
}

/* Classe per creare lo spazio (sostituisce margin-top: 45px) */
.spacer-top {
    margin-top: 45px;
}

/* Paragrafo del messaggio */
.page-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Classe per il testo "ATTENZIONE!" (sostituisce font-size: 18px; font-weight: bold) */
.text-warning {
    font-size: 18px;
    font-weight: bold;
    display: block; /* Opzionale: forza il testo su una riga propria */
    margin-bottom: 10px;
}



/* Input style */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #0066cc;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }

/* Messaggi di errore */
.text-danger {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Bottone */
.btn-login {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

    .btn-login:hover {
        background-color: #0052a3;
    }

/* Link */
.login-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

    .login-links .link {
        color: #0066cc;
        text-decoration: none;
        font-size: 14px;
        text-align: center;
    }

        .login-links .link:hover {
            color: #0052a3;
            text-decoration: underline;
        }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
