/* Reset generale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}


#page {
    padding-top: 0px !important;
}

.container-login {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}

/* Stili del body e dello sfondo */
body {
    min-height: 100vh;
    position: relative;
    background-image: url('../images/background/login_bgr.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.20);
    z-index: -1;
}

/* Layout container principale */
.container-login {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "login circulars";
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* Sezione login */
.login-section {
    grid-area: login;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    height: 100%;
}

.login-section::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(214,42,49,0.2) 20%, 
        rgba(214,42,49,0.2) 80%, 
        transparent);
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-image {
    max-width: 330px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Form di login */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(214,42,49,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem; /* Aumentato del 30% */
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1.3rem; /* Aumentato del 30% */
    transition: all 0.3s ease;
    padding-left: 40px;
}

.form-group input:focus {
    border-color: #d62a31;
    outline: none;
}

.form-group i {
    position: absolute;
    left: 12px;
    top: 40px;
    color: #999;
}

/* Checkbox remember me */
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem; /* Aumentato del 30% */
}

/* Pulsante login */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #d62a31;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem; /* Aumentato del 30% */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #c4252b;
    transform: translateY(-2px);
}

/* Sezione circolari */
.circulars-section {
    grid-area: circulars;
    background: rgba(248, 249, 250, 0.8);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
    height: 100%;
    overflow-y: auto;
}

.circulars-title {
    color: #d62a31;
    margin-bottom: 2rem;
    font-size: 1.95rem; /* Aumentato del 30% */
    position: relative;
    padding-bottom: 0.5rem;
}

.circulars-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #d62a31;
}

/* Card delle circolari */
.circular-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #d62a31;
    display: flex;
    flex-direction: column;
}

.circular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(214,42,49,0.1);
}

.circular-title {
    color: #333;
    font-weight: 500;
    font-size: 1.56rem; /* Aumentato di un ulteriore 30% */
}

/* Pillole data */
.circular-date-pill {
    font-size: 1.43rem; /* Aumentato di un ulteriore 30% */
    font-weight: 700;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.circular-date-pill i {
    color: #d62a31;
}

/* Preview circolari */
.circular-preview {
    color: #777;
    font-size: 1.52rem; /* Aumentato di un ulteriore 30% */
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    height: 65px; /* Aumentato per adattarsi al testo più grande */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 1.17rem; /* Aumentato del 30% */
    border-top: 1px solid rgba(214,42,49,0.1);
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-form, .circular-card {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Media queries */
@media (max-width: 992px) {
    .container-login {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "login"
            "circulars";
    }

    .login-section {
        padding: 2rem 1rem;
    }

    .login-section::after {
        display: none;
    }

    .login-form {
        padding: 1.5rem;
    }

    .circulars-section {
        border-top: 1px solid rgba(214,42,49,0.1);
    }

    .logo-image {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 150px;
    }

    .login-form {
        padding: 1rem;
    }

    .circular-card {
        padding: 1rem;
    }
}
