/* ─────────────────────────────────────────
   loginj.css  —  Stili pagina di login light
   ───────────────────────────────────────── */

/* ── Layout generale ── */
body {
    background-color: #FEFEFE;
    margin: 0;
    font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

main.orizzontal {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Header / area logo ── */
.top-block {
    background-color: #FEFEFE;
    padding: 30px 15px 20px;
}

.login-form-container {
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
}

#productImage {
    width: 280px;
    display: block;
    margin: 0 auto 20px;
}

/* ── Card form ── */
.login-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px 25px 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    margin-top: 24px;
}

/* ── Labels ── */
.login-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 12px;
}

/* ── Inputs — stile form-control Bootstrap ── */
.login-form input[type="text"],
.login-form input[type="password"] {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

/* ── Input con icona occhio ── */
.login-form div[style*="position: relative"] input[type="password"] {
    padding-right: 36px;
}

/* ── Switch Ricordami (replica Bootstrap switch-primary) ── */
#switch {
    display: flex;
    align-items: center;
    margin-top: 14px;
    gap: 8px;
}

#switch input[type="checkbox"] {
    display: none;
}

#switch label.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s;
    margin: 0;
    font-weight: normal;
    flex-shrink: 0;
}

#switch label.switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left .2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

#switch input:checked + label.switch {
    background: #5cb85c;
}

#switch input:checked + label.switch::after {
    left: 20px;
}

#switch span {
    font-size: 14px;
    line-height: 20px;
    margin: 0 !important;
    vertical-align: middle;
}

/* ── Bottone login — stile btn-primary Bootstrap ── */
.login-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #2e6da4;
    border-radius: 4px;
    color: #fff;
    background-color: #337ab7;
    background-image: linear-gradient(to bottom, #3c8dbc, #2e6da4);
    margin-top: 16px;
    transition: background-color .2s;
}

.login-form button[type="submit"]:hover {
    background-color: #286090;
    border-color: #204d74;
}

/* Nasconde la scritta "Light Mode" nel pulsante */
.login-form button[type="submit"] .red {
    display: none;
}

/* ── Link password dimenticata ── */
.login-form a {
    color: #337ab7;
    text-decoration: none;
}

.login-form a:hover {
    text-decoration: underline;
}

/* ── productName sotto la form ── */
.productName {
    text-align: center;
    margin-top: 16px;
}

.productName h1 {
    font-size: 22px;
    font-weight: 700;
    color: #555;
    margin: 0;
}

/* ── Immagine in fondo (stile Bootstrap full-width) ── */
.logo-orizzontal {
    flex: 1;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

/* ── Jumbotron cambio password scaduta ── */
.jumbotron {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 12px;
}

.jumbotron h1 {
    font-size: 18px;
    margin: 0 0 6px;
}

.jumbotron p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* ── Utility ── */
.hidden {
    display: none !important;
}

/* ── Layout verticale (immagine a sinistra, form a destra) ── */
main.vertical {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.logo-vertical.left-block {
    flex: 1;
    min-width: 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.right-block {
    width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 24px;
    background: #FEFEFE;
    overflow-y: auto;
}

/* Responsive: su schermi stretti, impila verticalmente */
@media (max-width: 768px) {
    main.vertical {
        flex-direction: column;
    }

    .logo-vertical.left-block {
        min-width: unset;
        min-height: 220px;
    }

    .right-block {
        width: 100%;
    }
}
