:root {
    --bg-light: #e8e8e8;
    --bg-dark: #001f6d;
    --text-blue: #001b6d;
    --accent-orange: #ffa700;
    --accent-orange-hover: #e69600;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --input-bg: #e5e5e5;
    --input-text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Responsività base: su mobile impila verticalmente */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
}

/* Lato Sinistro */
.content-side {
    flex: 1.2;
    padding: 60px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.description p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.benefit-list li::before {
    content: "•";
    position: absolute;
    left: 10px;
    font-weight: bold;
    color: var(--text-blue);
}

/* Lato Destro */
.form-side {
    flex: 0.8;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
    color: white;
}

.form-container {
    width: 100%;
    max-width: 450px;
}

.form-header {
    font-size: 1.3rem;
    margin-bottom: 35px;
    text-align: left;
    font-weight: 300;
    line-height: 1.4;
}

.logo-container a {
    text-decoration: none;
    display: inline-block;
    border: none;
    outline: none;
}

.side-logo {
    max-width: 240px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.side-logo:hover {
    opacity: 0.8;
}

.input-group {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 20px 25px;
    border-radius: 12px;
    border: none;
    background-color: var(--input-bg);
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--input-text);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

input:focus {
    outline: none;
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.submit-btn {
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    border: none;
    background-color: var(--accent-orange);
    color: var(--text-blue);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
}

.submit-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Messaggi di stato */
.status-msg {
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    min-height: 1.5em;
    transition: all 0.3s ease;
}

.status-msg.success { color: #4CAF50; }
.status-msg.error { color: #f44336; }

/* Animazioni */
.content-side, .form-container {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Adattamento mobile */
@media (max-width: 768px) {
    .main-title { font-size: 2.22rem; }
    .sub-title { font-size: 1.4rem; }
    .content-side { padding: 40px 5%; }
}
