/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;1,200;1,300;1,400;1,600;1,700&display=swap');

html, body {
    font-family: "Titillium Web", sans-serif;
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    margin: 0;
    padding: 0;
}

/* General Wrapper */
.login-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f6f6f6;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* --- HEADER --- */
header {
    background-color: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    border-bottom: 5px solid var(--sit-blue);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.Header-logo {
    flex-shrink: 0;
}

.Header-logo img {
    height: 65px;
    width: auto;
    display: block;
}

.Header-title {
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.Header-titleLink {
    margin: 0;
    line-height: 1.2;
}

.Header-titleLink a {
    text-decoration: none;
    color: var(--sit-blue);
    font-size: 1.75rem;
    font-weight: 400;
    font-family: "Titillium Web", sans-serif;
}

/* --- FOOTER --- */
.Footer {
    background-color: #30373D;
    color: #ecf0f1;
    padding: 40px 10%;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.Footer-logo {
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    margin-bottom: 20px;
}

.Footer-siteName {
    display: inline-block;
    vertical-align: middle;
    font-size: 24px;
    font-weight: 400; /* Regular weight */
    margin: 0;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.Footer-blockTitle {
    color: #fff; /* White title as per screenshot */
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-weight: 700;
    text-transform: none; /* Screenshot isn't all caps? Let's check. Info, Contatti, Links start with Cap. */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Footer Lists */
.Footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.Footer ul li {
    padding: 8px 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator lines */
    display: flex;
    align-items: flex-start;
    color: #ecf0f1; /* Text color */
}

/* Icons */
.Footer ul li i {
    margin-top: 5px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #337ab7; /* Blue icons? Or grey? Screenshot looks blue-ish or grey. Let's stick to standard link blue for consistency if links are blue. */
    font-size: 14px;
}

/* Links - Blue as per screenshot */
.Footer a {
    color: #337ab7;
    text-decoration: none;
    transition: color 0.2s;
}

.Footer a:hover {
    color: #23527c; /* Darker blue on hover */
    text-decoration: underline;
}

.u-linkClean {
    color: #337ab7 !important; /* Force blue */
}

/* Copyright Section Separator */
.Footer .Grid--withGutter:last-child {
    border-top: 1px solid rgba(255,255,255,0.3); /* Stronger separator line */
    margin-top: 30px;
    padding-top: 20px;
    width: 100%;
}

/* Grid adjustments */
.Grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.Grid-cell {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Responsive Columns */
.u-md-size1of3, .u-lg-size1of3 {
    width: 33.3333%;
    flex: 0 0 33.3333%;
}

@media (max-width: 991px) {
    .u-md-size1of3, .u-lg-size1of3 {
        width: 100%;
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}


/* Login Card Override */
.login-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Softer shadow */
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
    padding: 0;
}

.login-header {
    background: transparent; /* Remove blue gradient */
    padding: 2.5rem 2rem 1rem 2rem; /* Adjust padding */
    text-align: center;
    color: var(--sit-blue);
    border-bottom: none; /* Remove separation if existent */
}

/* Typography specifics for login card */
.text-sit-blue {
    color: var(--sit-blue) !important;
}

.login-header h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.login-header i, .login-header .fas {
    font-size: 1.1em;
}

/* Form Styles */
.login-card .p-4 {
    padding: 1rem 2.5rem 2.5rem 2.5rem !important; /* Move padding here */
}

.form-label {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: var(--sit-blue);
}

.form-control:focus {
    border-color: var(--sit-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 84, 166, 0.15);
}

.btn-primary {
    background-color: var(--sit-blue);
    border-color: var(--sit-blue);
    padding: 10px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--sit-dark-blue);
    border-color: var(--sit-dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 84, 166, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .Header-title { 
        display: none;
    }
    
    .u-md-size1of3, .u-lg-size1of3 {
        width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    main {
        padding: 1rem;
    }
    
    header {
        padding: 10px 15px;
    }
    
    .Header-logo img {
        height: 40px;
    }
    
    .login-card .p-4 {
        padding: 1rem 1.5rem 1.5rem 1.5rem !important;
    }
}

/* Fix Padlock Icon and Header Alignment */
.login-header h4 {
    display: flex; /* Use flexbox for title */
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
    gap: 0.5rem; /* Space between icon and text */
}

/* Ensure icon is not squashed/distorted */
.login-header i, .login-header .fas {
    display: inline-block;
    flex-shrink: 0; /* Prevent shrinking */
    line-height: 1; /* Reset line height */
    height: auto;
    width: auto;
    font-size: 1.2em; /* Ensure visible size */
}
