/* ======================================================
   RESET & BASE
====================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    background: transparent;
    color: white;
}




/* ======================================================
   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;
}

/* ======================================================
   CONTAINER
====================================================== */
.container {
    width: 90%;
    max-width: 420px;
    margin-top: 6vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ======================================================
   LOGO
====================================================== */
.logo {
    width: 75%;
    max-width: 260px;
    margin-bottom: -50px;
}

/* ======================================================
   TITLES
====================================================== */
.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 10px 0 6px;
}

.form-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

/* ======================================================
   BUTTONS
====================================================== */
.login-btn {
    width: 100%;
    padding: 14px;

    border-radius: 14px;
    border: 2px solid white;

    background-color: #ce0201;
    color: white;

    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;

    margin-bottom: 14px;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

.login-btn.transparent {
    background: transparent;
}

.login-btn:hover {
    background-color: #a50101;
    transform: translateY(-2px);
}

/* ======================================================
   ERROR
====================================================== */
.error-msg {
    width: 100%;
    background: rgba(255,0,0,0.85);
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 16px;
}

/* ======================================================
   DESKTOP ENHANCEMENT
====================================================== */
@media (min-width: 1024px) {

    body {
        align-items: center;
    }

    .container {
        max-width: 600px;
        padding: 42px 36px;

        background: rgba(0,0,0,0.35);
        border-radius: 26px;
        backdrop-filter: blur(8px);
    }

    .logo {
        max-width: 320px;
    }

    .form-title {
        font-size: 2.2rem;
    }

    .form-subtitle {
        font-size: 1.35rem;
        margin-bottom: 32px;
    }

    .login-btn {
        font-size: 1.25rem;
        padding: 16px;
    }
}
/* ======================================================
   FORM ELEMENTS (FIX DIMENSIONI)
====================================================== */

form {
    width: 100%;
    margin-top: 16px;
}

.mb-3 {
    width: 100%;
    margin-bottom: 22px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: white;
}

/* INPUT */
.form-control {
    width: 100%;
    height: 52px;
    padding: 12px 14px;

    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.85);

    background: rgba(0,0,0,0.35);
    color: white;

    font-size: 1rem;
    outline: none;

    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-control:focus {
    border-color: white;
    background: rgba(0,0,0,0.5);
}

/* ======================================================
   PASSWORD FIELD
====================================================== */

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);

    cursor: pointer;
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: white;
}

small {
    display: block;
    margin: 16px 0 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}

small a {
    color: white;
    text-decoration: underline;
}

.forgot-password {
    display: block;
    margin: 10px 0 22px;
    font-size: 0.95rem;
    color: white;
    text-decoration: underline;
}

/* ======================================================
   LARGE DESKTOP
====================================================== */
@media (min-width: 1024px) {

    .form-label {
        font-size: 1.1rem;
    }

    .form-control {
        height: 58px;
        font-size: 1.1rem;
    }
}