/* Pagina di login - stile da mockup "Riprogettazione login Heal Estate" (handoff design_handoff_login) */

.he-login-body {
    background: var(--bs-luce);
}

.he-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.he-login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid #dad5cc;
    border-radius: 16px;
    box-shadow: 0 24px 48px -16px rgba(70, 69, 71, 0.22), 0 6px 16px -4px rgba(70, 69, 71, 0.08);
    padding: 48px 40px 18px 40px;
}

.he-login-logo-band {
    background: var(--bs-terracotta);
    border-radius: 16px 16px 0 0;
    margin: -48px -40px 32px;
    padding: 24px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .he-login-logo-band img {
        height: 48px;
        width: auto;
    }

.he-login-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--bs-luce);
    opacity: 0.85;
    margin: 0;
}

.he-form-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #726f6b;
    margin-bottom: 6px;
}

.he-form-control {
    background: #ffffff;
    border: 1.5px solid rgba(70, 69, 71, 0.28);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 16px;
    color: var(--bs-ombra);
    font-family: "Basier Circle", "Jost", -apple-system, sans-serif;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

    .he-form-control::placeholder {
        color: rgba(70, 69, 71, 0.55);
    }

    .he-form-control:focus {
        background: #ffffff;
        border-color: var(--bs-terracotta);
        box-shadow: 0 0 0 3px rgba(89, 50, 29, 0.15);
        outline: none;
    }

    .he-form-control.input-validation-error {
        border-color: #B3453A;
    }

        .he-form-control.input-validation-error:focus {
            box-shadow: 0 0 0 3px rgba(179, 69, 58, 0.15);
        }

.he-field-error {
    font-size: 12px;
    color: #B3453A;
    margin-top: 5px;
}

    .he-field-error:empty {
        display: none;
    }

.he-caps-indicator {
    font-size: 12px;
    color: var(--bs-terra);
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 5px;
}

    .he-caps-indicator.show {
        display: flex;
    }

.he-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 0 28px;
    font-size: 14px;
}

.he-check-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 24px;
    color: #726f6b;
    margin-bottom: 0;
    cursor: pointer;
}

.he-check-input {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    left: 0;
    margin: 0;
    cursor: pointer;
}

.he-check-box {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(70, 69, 71, 0.35);
    border-radius: 5px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
    pointer-events: none;
}

    .he-check-box svg {
        width: 12px;
        height: 12px;
        color: #ffffff;
        opacity: 0;
        transition: opacity 100ms ease;
    }

.he-check-input:checked ~ .he-check-box {
    background: var(--bs-terracotta);
    border-color: var(--bs-terracotta);
}

    .he-check-input:checked ~ .he-check-box svg {
        opacity: 1;
    }

.he-check-input:focus-visible ~ .he-check-box {
    box-shadow: 0 0 0 3px rgba(89, 50, 29, 0.15);
}

.he-forgot-link {
    color: #726f6b;
    text-decoration: none;
}

    .he-forgot-link:hover {
        color: var(--bs-terracotta);
        text-decoration: underline;
    }

.he-btn-primary {
    width: 100%;
    height: 53px;
    background: var(--bs-terracotta);
    border: none;
    color: var(--bs-luce);
    font-family: "Basier Circle", "Jost", -apple-system, sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

    .he-btn-primary:hover {
        background: #4d2a18;
        color: var(--bs-luce);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px -6px rgba(89, 50, 29, 0.4);
    }

    .he-btn-primary:active {
        background: #422413;
        color: var(--bs-luce);
        transform: translateY(0);
        box-shadow: none;
    }
    .he-btn-primary:focus:active {
        background: #422413;
        color: var(--bs-luce);
        transform: translateY(0);
        box-shadow: none;
    }

.he-login-footer {
    text-align: center;
    font-size: 14px;
    color: #726f6b;
    margin-top: 24px;
}

.he-login-error {
    font-size: 14px;
    color: #7a3324;
    background: #f3e6e0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

    .he-login-error ul {
        margin: 0;
        padding-left: 18px;
    }

    .he-login-error.validation-summary-valid {
        display: none;
    }
