/* ======================================================
   RESET & BASE
====================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #ce0201;
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

/* ======================================================
   HOME CONTAINER
====================================================== */
.home-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

/* ======================================================
   LANGUAGE SELECTOR
====================================================== */
.language-selector {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
}

.language-selector select {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(6px);
}

.language-selector option {
    color: black;
}


/* ======================================================
   TOP BAR
====================================================== */
.top-bar {
    position: relative;
    height: 88px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lingua a sinistra */
.lang-select {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 600;
}

/* Pulsante avanti a destra */
.go-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #ce0201;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: transform 0.15s ease;
}

.go-btn:active {
    transform: translateY(-50%) scale(0.92);
}

/* Logo centrale */
.logo-center {
    height: 120px;
    margin: 10px auto 20px;
    display: block;
}

/* ======================================================
   MAIN CONTENT
====================================================== */
.container {
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
    padding-bottom: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ======================================================
   TYPOGRAPHY
====================================================== */
.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

/* ======================================================
   ERROR
====================================================== */
.error-msg {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,0,0,0.85);
    font-weight: bold;
    margin-bottom: 16px;
}

/* ======================================================
   INPUTS
====================================================== */
.form-control {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* ======================================================
   BUTTONS
====================================================== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.back-btn:hover {
    background: #a50101;
}

.back-btn:active {
    transform: scale(0.96);
}

/* ======================================================
   CENTER GLOW BUTTON
====================================================== */
.center-button-wrapper {
    margin-top: 36px;
    position: relative;
}

.center-button-wrapper::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: radial-gradient(
        circle,
        rgba(255, 230, 120, 0.55) 0%,
        rgba(255, 193, 7, 0.15) 45%,
        rgba(255, 193, 7, 0) 75%
    );
    filter: blur(10px);
    z-index: 0;
}

.start-button {
    position: relative;
    z-index: 1;
}

/* ======================================================
   BOTTOM BANNER
====================================================== */
.bottom-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    max-width: 520px;
    object-fit: cover;
}

/* ======================================================
   SMALL TEXT
====================================================== */
small {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
    margin: 14px 0 20px;
}

small a {
    color: #FFC107;
    font-weight: 500;
    text-decoration: underline;
}

/* ======================================================
   DESKTOP ENHANCEMENT
====================================================== */
@media (min-width: 1024px) {

    body {
        background: linear-gradient(135deg, #ce0201, #a50101);
    }

    .home-container {
        max-width: 820px;
    }

    .container {
        max-width: 520px;
    }

    .form-title {
        font-size: 2.1rem;
    }

    .form-subtitle {
        font-size: 1.35rem;
    }

    .logo-center {
        height: 150px;
    }
}

/* ======================================================
   MOBILE TWEAKS
====================================================== */
@media (max-width: 480px) {

    .logo-center {
        height: 100px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-subtitle {
        font-size: 1.05rem;
    }
}
